Function at 0x478608
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
xor edx, edx
mov dword [eax], edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0x40
call fcn.00477d38
test al, al
jne 0x478641
push 0xd
call fcn.00408090
jmp 0x478a63
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x5a4d
je 0x478669
push 0xc1
call fcn.00408090
jmp 0x478a63
mov eax, dword [ebp + 0x14]
mov dword [eax], 2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
add eax, 0xf8
cdq
push edx
push eax
call fcn.00477d38
test al, al
jne 0x47869b
push 0xd
call fcn.00408090
jmp 0x478a63
mov eax, dword [ebp + 0x14]
mov dword [eax], 3
mov eax, dword [ebp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x4550
je 0x4786d9
push 0xc1
call fcn.00408090
jmp 0x478a63
mov eax, dword [ebp + 0x14]
mov dword [eax], 4
mov eax, dword [ebp - 0x10]
cmp word [eax + 4], 0x14c
je 0x4786fc
push 0xc1
call fcn.00408090
jmp 0x478a63
mov eax, dword [ebp + 0x14]
mov dword [eax], 5
mov eax, dword [ebp - 0x10]
test byte [eax + 0x38], 1
je 0x47871d
push 0xc1
call fcn.00408090
jmp 0x478a63
mov eax, dword [ebp + 0x14]
mov dword [eax], 6
xor eax, eax
push ebp
push 0x478a4e
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x478746
mov byte [ebp - 0x2d], 1
lea eax, [ebp - 0x54]
push eax
call fcn.00407f00
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x50]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x50]
xor edx, edx
push edx
push eax
call fcn.00477cc4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
call fcn.00477eb8
push edx
push eax
mov eax, dword [ebp - 0x50]
xor edx, edx
push edx
push eax
call fcn.00477cc4
cmp edx, dword [ebp - 0x14]
jne 0x47878d
cmp eax, dword [ebp - 0x18]
je 0x47879d
push 0xc1
call fcn.00408090
mov byte [ebp - 0x2d], 0
cmp byte [ebp - 0x2d], 0
je 0x478a34
mov eax, dword [ebp + 0x14]
mov dword [eax], 7
push 0x18
push 0
call fcn.00407ee8
push eax
call fcn.00407f90
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4787d3
push 0xe
call fcn.00408090
mov byte [ebp - 0x2d], 0
cmp byte [ebp - 0x2d], 0
je 0x478a34
mov eax, dword [ebp + 0x14]
mov dword [eax], 8
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 4], edx
mov dl, 1
mov eax, dword [0x41a420]
call fcn.00404484
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, 0x64
call fcn.0041d120
mov eax, dword [ebp - 0x50]
xor edx, edx
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 0x14]
mov dword [eax], 9
push 0x40
push 0x3000
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
push eax
call fcn.004080c0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x478892
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xa
push 0x40
push 0x3000
mov eax, dword [ebp - 0x18]
push eax
push 0
call fcn.004080c0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x478892
mov eax, dword [ebp + 0x14]
mov dword [eax], 9
push 0xe
call fcn.00408090
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00478a70
mov byte [ebp - 0x2d], 0
cmp byte [ebp - 0x2d], 0
je 0x478a34
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xa
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 0x10]
add ecx, dword [eax + 0x54]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
call fcn.00408a58
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov dword [edx + 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xb
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
call fcn.00477f5c
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xc
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
jne 0x478935
cmp dword [ebp - 0x28], 0
je 0x47894b
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xd
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.00478028
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xe
mov eax, dword [ebp - 8]
push eax
call fcn.0047819c
test al, al
jne 0x478970
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00478a70
mov byte [ebp - 0x2d], 0
cmp byte [ebp - 0x2d], 0
je 0x478a34
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xf
mov eax, dword [ebp - 8]
call fcn.00478498
test al, al
jne 0x4789a7
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00478a70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x478a63
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x10
mov eax, dword [ebp - 8]
call fcn.00478584
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x11
cmp byte [ebp + 0x18], 0
je 0x478a1e
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x478a1e
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x12
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00477d80
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x13
cmp dword [ebp - 0x2c], 0
je 0x478a1e
push 0
push 1
mov eax, dword [ebp - 0x1c]
push eax
call dword [ebp - 0x2c]
test eax, eax
jne 0x478a1e
push 0x45a
call fcn.00408090
mov byte [ebp - 0x2d], 0
cmp byte [ebp - 0x2d], 0
je 0x478a34
mov eax, dword [ebp - 8]
mov dword [eax + 0x14], 0xffffffff
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x478a44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x478a63
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14