Function at 0x40c7f0
Capabilities:
Parse pe header

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x6c
push 0xfffffffffffffffe
push 0x422fd0
push 0x40f150
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x4273d0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x68], 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 + 0x74]
mov ecx, dword [ebp + 0x78]
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x1c], 0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [0x41f1a8]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c957
push 0
lea edx, [ebp + 0x24]
push edx
push 0x40
lea eax, [ebp + 0x28]
push eax
push esi
mov ebx, dword [0x41f1ac]
call ebx
test eax, eax
je 0x40c950
cmp dword [ebp + 0x24], 0x40
jne 0x40c950
mov ecx, 0x5a4d
cmp word [ebp + 0x28], cx
jne 0x40c950
push 0
push 0
mov edx, dword [ebp + 0x64]
push edx
push esi
call dword [0x41f1b0]
cmp eax, dword [ebp + 0x64]
jne 0x40c950
push 0
lea eax, [ebp + 0x24]
push eax
push 0xf8
lea ecx, [ebp - 0x128]
push ecx
push esi
call ebx
test eax, eax
je 0x40c950
cmp dword [ebp + 0x24], 0xf8
jne 0x40c950
cmp dword [ebp - 0x128], 0x4550
jne 0x40c950
cmp word [ebp - 0x122], 0
je 0x40c950
mov eax, dword [ebp - 0xa0]
mov dword [ebp + 0x10], eax
mov edx, dword [ebp - 0x9c]
mov dword [ebp + 0x14], edx
test eax, eax
je 0x40c950
push 0
push esi
call dword [0x41f1a4]
mov dword [ebp + 0x24], eax
push 4
push 0x1000
push eax
push 0
call dword [0x41f1c0]
mov edi, eax
mov dword [ebp + 0x20], edi
test edi, edi
je 0x40c950
push 0
push 0
push 0
push esi
call dword [0x41f1b0]
push 0
lea eax, [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
push edi
push esi
call ebx
test eax, eax
jne 0x40c978
push 0x8000
push eax
push edi
call dword [0x41f1c4]
push esi
call dword [0x41f088]
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 + 0x68]
xor ecx, ebp
call fcn.0040dfa7
add ebp, 0x6c
mov esp, ebp
pop ebp
ret
push esi
call dword [0x41f088]
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0x64]
add edi, edx
push edi
mov ebx, dword [ebp + 0x10]
call fcn.0040c600
add esp, 4
mov ebx, dword [ebp + 0x20]
add eax, ebx
lea edx, [eax + 0x10]
movzx ecx, word [eax + 0xe]
movzx esi, word [eax + 0xc]
add ecx, esi
mov dword [ebp + 0xc], ecx
mov dword [ebp], edx
mov esi, ecx
dec ecx
mov dword [ebp + 0xc], ecx
test esi, esi
je 0x40ca6c
test dword [edx], 0x80000000
jne 0x40ca7d
cmp word [edx], 0xa
jne 0x40ca7d
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 + 4], edx
mov dword [ebp + 8], esi
mov ecx, edx
dec edx
mov dword [ebp + 4], edx
test ecx, ecx
je 0x40ca6c
mov ecx, 0x360
cmp word [esi], cx
jne 0x40ca75
mov esi, dword [esi + 4]
test esi, esi
jns 0x40ca17
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 - 0x30], 0x18
mov dword [ebp - 0x2c], ebx
push edi
mov ebx, dword [ebp + 0x10]
call fcn.0040c600
mov dword [ebp - 0x28], eax
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x24], edx
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], eax
push edi
mov ebx, dword [esi]
call fcn.0040c600
add eax, dword [ebp + 0x20]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.0040c670
add esp, 0xc
mov dword [ebp + 0x1c], eax
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 4], 0xfffffffe
jmp 0x40ca98
add esi, 8
jmp 0x40c9ee
add edx, 8
jmp 0x40c9ac
test ebx, ebx
je 0x40caaa
push 0x8000
push 0
push ebx
call dword [0x41f1c4]
mov eax, dword [ebp + 0x1c]
jmp 0x40c959