Function at 0x40ada0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x41c688
push 0x40daf0
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x41e040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], 0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [0x419074]
mov esi, eax
cmp esi, 0xffffffff
je 0x40aefc
push 0
lea eax, [ebp - 0x68]
push eax
push 0x40
lea ecx, [ebp - 0x64]
push ecx
push esi
mov ebx, dword [0x419070]
call ebx
test eax, eax
je 0x40aef5
cmp dword [ebp - 0x68], 0x40
jne 0x40aef5
mov edx, 0x5a4d
cmp word [ebp - 0x64], dx
jne 0x40aef5
push 0
push 0
mov eax, dword [ebp - 0x28]
push eax
push esi
call dword [0x419068]
cmp eax, dword [ebp - 0x28]
jne 0x40aef5
push 0
lea ecx, [ebp - 0x68]
push ecx
push 0xf8
lea edx, [ebp - 0x19c]
push edx
push esi
call ebx
test eax, eax
je 0x40aef5
cmp dword [ebp - 0x68], 0xf8
jne 0x40aef5
cmp dword [ebp - 0x19c], 0x4550
jne 0x40aef5
cmp word [ebp - 0x196], 0
je 0x40aef5
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x78], ecx
test eax, eax
je 0x40aef5
push 0
push esi
call dword [0x419064]
mov dword [ebp - 0x68], eax
push 4
push 0x1000
push eax
push 0
call dword [0x419078]
mov edi, eax
mov dword [ebp - 0x6c], edi
test edi, edi
je 0x40aef5
push 0
push 0
push 0
push esi
call dword [0x419068]
push 0
lea edx, [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x68]
push eax
push edi
push esi
call ebx
test eax, eax
jne 0x40af1a
push 0x8000
push eax
push edi
call dword [0x41906c]
push esi
call dword [0x419044]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0040caa0
mov esp, ebp
pop ebp
ret
push esi
call dword [0x419044]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
add edi, ecx
push edi
mov ebx, dword [ebp - 0x7c]
call fcn.0040ad30
add esp, 4
mov ebx, dword [ebp - 0x6c]
add eax, ebx
lea edx, [eax + 0x10]
movzx ecx, word [eax + 0xe]
movzx esi, word [eax + 0xc]
add ecx, esi
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x88], edx
mov esi, ecx
dec ecx
mov dword [ebp - 0x80], ecx
test esi, esi
je 0x40b03c
test dword [edx], 0x80000000
jne 0x40b04d
cmp word [edx], 0xa
jne 0x40b04d
mov ecx, dword [edx + 4]
and ecx, 0x7fffffff
add ecx, eax
lea esi, [ecx + 0x10]
movzx edx, word [ecx + 0xe]
movzx ecx, word [ecx + 0xc]
add edx, ecx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x74], esi
mov ecx, edx
dec edx
mov dword [ebp - 0x84], edx
test ecx, ecx
je 0x40b03c
mov ecx, 0x360
cmp word [esi], cx
jne 0x40b045
mov esi, dword [esi + 4]
test esi, esi
jns 0x40afca
and esi, 0x7fffffff
add esi, eax
mov esi, dword [esi + 0x14]
add esi, eax
xor eax, eax
mov dword [edi + 0x58], eax
mov dword [edi + 0x98], eax
mov dword [edi + 0x9c], eax
mov dword [ebp - 0xa0], 0x18
mov dword [ebp - 0x9c], ebx
push edi
mov ebx, dword [ebp - 0x7c]
call fcn.0040ad30
add esp, 4
mov dword [ebp - 0x98], eax
mov eax, 0x41acb0
mov dword [ebp - 0x94], eax
mov edx, dword [esi + 4]
mov dword [ebp - 0x8c], edx
push edi
mov ebx, dword [esi]
call fcn.0040ad30
add esp, 4
add eax, dword [ebp - 0x6c]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b090
add esp, 4
mov dword [ebp - 0x70], eax
mov ebx, dword [ebp - 0x6c]
mov dword [ebp - 4], 0xfffffffe
jmp 0x40b068
add esi, 8
jmp 0x40af96
add edx, 8
jmp 0x40af4e
test ebx, ebx
je 0x40b07a
push 0x8000
push 0
push ebx
call dword [0x41906c]
mov eax, dword [ebp - 0x70]
jmp 0x40aefe