Function at 0x40a8f8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd08
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2f8], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404438
xor eax, eax
push ebp
push 0x40af4a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00402684
test bl, bl
jne 0x40a961
lea edx, [ebp - 0x2f8]
mov eax, dword [ebp - 0x14]
call fcn.00406708
mov edx, dword [ebp - 0x2f8]
mov eax, 0x40af64
call fcn.00404530
test eax, eax
jg 0x40af1c
xor eax, eax
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x168]
call fcn.00402b64
mov edx, 1
lea eax, [ebp - 0x168]
call fcn.00402f68
call fcn.004026fc
test eax, eax
jne 0x40af19
xor eax, eax
push ebp
push 0x40af0f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x168]
call fcn.00402d98
call fcn.00402648
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x40
jbe 0x40af05
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov eax, dword [0x40e864]
cdq
cmp edx, dword [esp + 4]
jne 0x40a9d2
cmp eax, dword [esp]
pop edx
pop eax
je 0x40af05
xor eax, eax
push ebp
push 0x40aefe
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea edx, [ebp - 0x2f4]
mov ecx, 0x40
lea eax, [ebp - 0x168]
call fcn.00402cc8
call fcn.00402648
cmp word [ebp - 0x2f4], 0x5a4d
jne 0x40aef0
cmp word [ebp - 0x2ec], 4
jb 0x40aef0
cmp word [ebp - 0x2dc], 0x40
jb 0x40aef0
cmp word [ebp - 0x2b8], 0x40
jb 0x40aef0
movzx eax, word [ebp - 0x2b8]
add eax, 2
cmp eax, dword [ebp - 8]
ja 0x40aef0
movzx edx, word [ebp - 0x2b8]
lea eax, [ebp - 0x168]
call fcn.00402f90
call fcn.00402648
push 0
lea edx, [ebp - 0x2f4]
mov ecx, 2
lea eax, [ebp - 0x168]
call fcn.00402cc8
call fcn.00402648
mov edx, dword [ebp - 8]
sub edx, 2
lea eax, [ebp - 0x168]
call fcn.00402f90
call fcn.00402648
push 0
lea edx, [ebp - 0x2f2]
mov ecx, 2
lea eax, [ebp - 0x168]
call fcn.00402cc8
call fcn.00402648
mov edx, 0x26
lea eax, [ebp - 0x168]
call fcn.00402f90
call fcn.00402648
push 0
mov edx, 0x40e864
mov ecx, 4
lea eax, [ebp - 0x168]
call fcn.00402cc8
call fcn.00402648
cmp word [ebp - 0x2f4], 0x4550
jne 0x40aee9
cmp word [ebp - 0x2f2], 0x1010
je 0x40aee9
cmp dword [0x40e864], 0
jne 0x40aee9
xor eax, eax
call fcn.00406c10
push edx
push eax
mov eax, dword [0x40e864]
cdq
push edx
push eax
mov eax, dword [ebp - 8]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
cmp edx, dword [esp + 4]
jne 0x40ab47
cmp eax, dword [esp]
pop edx
pop eax
ja 0x40aee9
jmp 0x40ab4f
pop edx
pop eax
jg 0x40aee9
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, 0x40af74
call fcn.0040429c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x2b4]
call fcn.00402b64
mov edx, 1
lea eax, [ebp - 0x2b4]
call fcn.00402f84
call fcn.00402648
mov eax, dword [ebp - 4]
call fcn.00406878
mov dword [ebp - 0x1c], eax
mov eax, dword [0x40e860]
mov dword [0x40e864], eax
push 0
mov edx, dword [0x40e85c]
mov ecx, dword [0x40e864]
lea eax, [ebp - 0x2b4]
call fcn.00402ce8
call fcn.00402648
lea eax, [ebp - 0x2b4]
call fcn.00402d08
call fcn.00402648
mov eax, dword [ebp - 0x10]
call fcn.00404448
push eax
mov eax, dword [ebp - 4]
call fcn.00404448
xor ecx, ecx
pop edx
call fcn.0040a5e0
push 0xc8
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x2b4]
call fcn.00402b64
mov edx, 1
lea eax, [ebp - 0x2b4]
call fcn.00402f68
call fcn.00402648
lea eax, [ebp - 0x2b4]
call fcn.00402d98
call fcn.00402648
mov dword [0x40e864], eax
xor eax, eax
push ebp
push 0x40acd4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x40e864]
call fcn.00402554
mov dword [0x40e858], eax
lea eax, [ebp - 8]
push eax
mov edx, dword [0x40e858]
mov ecx, dword [0x40e864]
lea eax, [ebp - 0x2b4]
call fcn.00402cc8
call fcn.00402648
mov eax, dword [ebp - 8]
mov dword [0x40e864], eax
lea eax, [ebp - 0x2b4]
call fcn.00402d08
call fcn.00402648
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x2b4]
call fcn.00402b64
mov edx, 1
lea eax, [ebp - 0x2b4]
call fcn.00402f84
call fcn.00402648
push 0
mov edx, dword [0x40e858]
mov ecx, dword [0x40e864]
lea eax, [ebp - 0x2b4]
call fcn.00402ce8
call fcn.00402648
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40acdb
mov edx, dword [0x40e864]
mov eax, dword [0x40e858]
call fcn.00402574
ret
mov dword [ebp - 0x18], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40af05
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40af19
mov esi, dword [ebp - 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40af51
lea eax, [ebp - 0x2f8]
call fcn.00403fe0
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404004
lea eax, [ebp - 4]
call fcn.00403fe0
ret