Function at 0x407220
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4227bd
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x433040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movlpd qword [ebp - 0x1c], xmm0
push 0x38
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00410893
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push 0
push eax
lea edx, [ebp - 0x34]
mov ecx, esi
call fcn.004066a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x407494
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4072b7
sub ecx, edx
mov edx, esi
sar ecx, 1
dec ecx
call fcn.00404850
not eax
xor edx, edx
mov ecx, eax
call fcn.0040ddf0
mov ecx, eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x407494
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x4072f9
cmp word [ebx], ax
jne 0x407494
mov eax, dword [ecx + 0x3c]
mov esi, dword [ebx + 0x3c]
add esi, ebx
mov dword [ebp - 0x24], esi
cmp dword [eax + ecx], 0x4550
je 0x407319
cmp dword [esi], 0x4550
jne 0x407494
mov eax, dword [esi + 0x50]
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push 0x1000
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
call fcn.004105af
add esp, 0x18
test eax, eax
jne 0x407494
push dword [esi + 0x54]
push ebx
push dword [ebp - 0x20]
call fcn.00414eb0
mov eax, dword [ebx + 0x3c]
xor ecx, ecx
add esp, 0xc
add eax, 0x10c
xor edi, edi
cmp cx, word [esi + 6]
jae 0x407391
lea esi, [eax + ebx]
mov eax, dword [esi - 4]
test eax, eax
je 0x407382
push eax
mov eax, dword [esi]
add eax, ebx
push eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 0x20]
push eax
call fcn.00414eb0
add esp, 0xc
mov eax, dword [ebp - 0x24]
inc edi
add esi, 0x28
movzx eax, word [eax + 6]
cmp edi, eax
jb 0x407366
push ebx
push 0xffffffffffffffff
call fcn.00410607
xor ebx, ebx
push 0x10
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.00410893
mov esi, eax
mov dword [ebp - 0x28], esi
mov dword [esi], esi
mov dword [esi + 4], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
cdq
push 0x10
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
call fcn.00410893
mov edi, eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], edi
add esp, 0x10
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x28], edi
mov dword [edi], edi
mov dword [edi + 4], edi
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004086b0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + 4]
mov dword [eax], ebx
mov eax, dword [ecx]
test eax, eax
je 0x407426
nop dword [eax]
mov esi, dword [eax]
push 0x10
push eax
call fcn.004108c3
add esp, 8
mov eax, esi
test esi, esi
jne 0x407410
mov ecx, dword [ebp - 0x3c]
push 0x10
push ecx
call fcn.004108c3
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [edi + 4]
mov dword [eax], 0
mov eax, dword [edi]
test eax, eax
je 0x407457
mov esi, dword [eax]
push 0x10
push eax
call fcn.004108c3
add esp, 8
mov eax, esi
test esi, esi
jne 0x407444
push 0x10
push edi
call fcn.004108c3
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
push 0
call fcn.004069c0
mov eax, dword [ebp - 0x4c]
add esp, 4
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
add eax, 0x18
push 0
sub esp, 0x14
cmp byte [ebp - 0x48], 1
cmovne eax, ecx
push eax
push ecx
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.00406d30
add esp, 0x2c
cmp dword [ebp - 0x20], 0
je 0x4074b1
push 0x8000
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
call fcn.004105ba
add esp, 0x10
test ebx, ebx
je 0x4074c0
push ebx
push 0xffffffffffffffff
call fcn.00410607
add esp, 8
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4074d0
push eax
call fcn.004105a4
add esp, 4
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4074e0
push eax
call fcn.004105a4
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00407b10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004107a0
mov esp, ebp
pop ebp
ret