Function at 0x407590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42284d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
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 - 0x58], 0
movlpd qword [ebp - 0x28], xmm0
push 0x18
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x40], 0x800
mov dword [ebp - 0x18], 0x800
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.00410893
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x54]
push 1
push eax
lea edx, [ebp - 0x58]
mov ecx, esi
call fcn.004066a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x407925
mov ecx, esi
call fcn.00401a00
mov edi, eax
mov esi, edx
mov ecx, edi
mov dword [ebp - 0x4c], edi
or ecx, esi
mov dword [ebp - 0x50], esi
je 0x407925
push 4
push 0x3000
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
push 0xffffffffffffffff
call fcn.004105af
add esp, 0x18
test eax, eax
jne 0x407925
mov edx, dword [ebp - 0x2c]
mov ecx, edi
add ecx, 0x800
mov dword [ebp - 0x20], edx
mov eax, esi
mov dword [ebp - 0x3c], edi
adc eax, 0
mov dword [ebp - 0x38], esi
test eax, eax
ja 0x4076b7
jb 0x4076a7
cmp ecx, 0xffffffff
jae 0x4076b7
mov esi, edi
mov ecx, 0x200
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x4c]
jmp 0x4076d0
push 0
push dword [ebp - 0x40]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push 0
push dword [ebp - 0x20]
call [0x430474]
add esp, 0x18
mov eax, dword [ebp - 0x2c]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4076e6
cmp word [ebx], cx
jne 0x407928
mov ecx, dword [eax + 0x3c]
mov esi, dword [ebx + 0x3c]
add esi, ebx
mov dword [ebp - 0x38], esi
cmp dword [ecx + eax], 0x4550
je 0x407706
cmp dword [esi], 0x4550
jne 0x407928
mov eax, dword [ecx + eax + 0x50]
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push 0x1000
push eax
push 0
lea eax, [ebp - 0x30]
push eax
push 0xffffffffffffffff
call fcn.004105af
add esp, 0x18
test eax, eax
jne 0x407925
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
mov ecx, edx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
xor eax, eax
add ecx, edi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x48], edi
adc eax, dword [ebp - 0x50]
test eax, eax
ja 0x407768
jb 0x407759
cmp ecx, 0xffffffff
jae 0x407768
push edx
push edi
push dword [ebp - 0x30]
call fcn.00414eb0
add esp, 0xc
jmp 0x407781
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push 0
push dword [ebp - 0x40]
call [0x430474]
add esp, 0x18
cmp dword [ebp - 0x2c], 0
je 0x40779e
push 0x8000
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0xffffffffffffffff
call fcn.004105ba
add esp, 0x10
mov eax, dword [esi + 0x50]
push 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 0x1000
push eax
push 0
lea eax, [ebp - 0x34]
push eax
push 0xffffffffffffffff
call fcn.004105af
add esp, 0x18
test eax, eax
jne 0x407925
push dword [esi + 0x54]
push ebx
push dword [ebp - 0x34]
call fcn.00414eb0
mov eax, dword [ebx + 0x3c]
xor ecx, ecx
add esp, 0xc
add eax, 0x11c
xor edi, edi
cmp cx, word [esi + 6]
jae 0x40781b
lea esi, [eax + ebx]
nop dword [eax + eax]
mov eax, dword [esi - 4]
test eax, eax
je 0x40780c
push eax
mov eax, dword [esi]
add eax, ebx
push eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 0x34]
push eax
call fcn.00414eb0
add esp, 0xc
mov eax, dword [ebp - 0x38]
inc edi
add esi, 0x28
movzx eax, word [eax + 6]
cmp edi, eax
jb 0x4077f0
push ebx
push 0xffffffffffffffff
call fcn.00410607
xor ebx, ebx
push 0x10
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
call fcn.00410893
mov esi, eax
mov dword [ebp - 0x3c], esi
mov dword [esi], esi
mov dword [esi + 4], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x50]
mov edi, dword [ebp - 0x4c]
push 0x10
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
call fcn.00410893
mov dword [ebp - 0x60], eax
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x60], esi
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004086b0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x60]
mov eax, dword [ecx + 4]
mov dword [eax], ebx
mov eax, dword [ecx]
test eax, eax
je 0x4078ac
mov esi, dword [eax]
push 0x10
push eax
call fcn.004108c3
add esp, 8
mov eax, esi
test esi, esi
jne 0x407896
mov ecx, dword [ebp - 0x60]
push 0x10
push ecx
call fcn.004108c3
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x4078e6
nop dword [eax]
mov esi, dword [eax]
push 0x10
push eax
call fcn.004108c3
add esp, 8
mov eax, esi
test esi, esi
jne 0x4078d0
mov ecx, dword [ebp - 0x4c]
push 0x10
push ecx
call fcn.004108c3
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
push 1
call fcn.004069c0
mov eax, dword [ebp - 0x48]
add esp, 4
mov edx, dword [ebp - 0x30]
xor ecx, ecx
add eax, 0x18
push 1
sub esp, 0x14
cmp byte [ebp - 0x44], 1
cmovne eax, ecx
mov ecx, dword [ebp - 0x34]
push eax
push dword [ebp - 0x50]
push edi
call fcn.00406d30
add esp, 0x2c
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x407943
push 0x8000
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0xffffffffffffffff
call fcn.004105ba
add esp, 0x10
cmp dword [ebp - 0x30], 0
je 0x407960
push 0x8000
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push 0xffffffffffffffff
call fcn.004105ba
add esp, 0x10
cmp dword [ebp - 0x34], 0
je 0x40797d
push 0x8000
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0xffffffffffffffff
call fcn.004105ba
add esp, 0x10
test ebx, ebx
je 0x40798c
push ebx
push 0xffffffffffffffff
call fcn.00410607
add esp, 8
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x40799c
push eax
call fcn.004105a4
add esp, 4
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4079ac
push eax
call fcn.004105a4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x4079d8
mov esi, dword [eax]
push 0x18
push eax
call fcn.004108c3
add esp, 8
mov eax, esi
test esi, esi
jne 0x4079c5
push 0x18
push dword [ebp - 0x28]
call fcn.004108c3
add esp, 8
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