Function at 0x41c88c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor esi, esi
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004200f0
mov ebx, eax
test ebx, ebx
je 0x41ca85
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x7c]
call fcn.00416408
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], 0
je 0x41c8cd
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 8]
sub eax, 1
jb 0x41c8e0
je 0x41c9b2
jmp 0x41ca85
mov edi, 0x10
cmp edi, dword [ebp + 0xc]
jbe 0x41c8f4
mov esi, 0xc0000004
jmp 0x41c99e
cmp dword [ebp + 0x10], 0
je 0x41c91a
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 0xc]
xor edx, edx
push edx
push eax
call fcn.0040e030
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.00406c7c
test eax, eax
je 0x41c921
mov esi, 0xc0000005
jmp 0x41c99e
cmp edi, dword [ebp + 0xc]
jbe 0x41c92b
mov esi, 0x80000005
mov edx, edi
mov eax, dword [ebp + 0x10]
call fcn.00406da0
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov dword [eax + 4], 0x800000
mov eax, dword [ebp + 0x10]
mov edx, dword [ebx + 0x48]
mov dword [eax + 8], edx
mov edx, dword [ebx + 0x4c]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x10]
test byte [eax + 0x1f], 1
je 0x41c99e
mov edx, dword [ebx + 0x84]
test edx, edx
je 0x41c99e
mov eax, edx
cmp word [eax], 0x5a4d
jne 0x41c99e
mov ecx, dword [eax + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x41c99e
cmp word [ecx + 0x18], 0x10b
jne 0x41c99e
mov eax, dword [ebp + 0x10]
mov dword [eax + 4], 0x1800000
mov eax, dword [ecx + 0x50]
xor edx, edx
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
cmp dword [ebp + 8], 0
je 0x41ca85
mov eax, dword [ebp + 8]
mov dword [eax], edi
jmp 0x41ca85
mov edi, 0x30
cmp edi, dword [ebp + 0xc]
jbe 0x41c9c6
mov esi, 0xc0000004
jmp 0x41ca7a
cmp dword [ebp + 0x10], 0
je 0x41c9ec
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 0xc]
xor edx, edx
push edx
push eax
call fcn.0040e030
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.00406c7c
test eax, eax
je 0x41c9f6
mov esi, 0xc0000005
jmp 0x41ca7a
cmp edi, dword [ebp + 0xc]
jbe 0x41ca00
mov esi, 0x80000005
mov edx, edi
mov eax, dword [ebp + 0x10]
call fcn.00406da0
mov eax, dword [ebp - 0x10]
test byte [eax + 0x1f], 1
je 0x41ca7a
mov edx, dword [ebx + 0x84]
test edx, edx
je 0x41ca7a
mov eax, edx
cmp word [eax], 0x5a4d
jne 0x41ca7a
mov ecx, dword [eax + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x41ca7a
cmp word [ecx + 0x18], 0x10b
jne 0x41ca7a
mov edx, dword [ecx + 0x28]
add edx, dword [ecx + 0x34]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
movzx edx, word [ecx + 0x16]
mov dword [eax + 0x1c], edx
movzx edx, word [ecx + 0x5c]
mov dword [eax + 0x10], edx
mov dx, word [ecx + 4]
mov word [eax + 0x20], dx
test byte [ecx + 0x16], 2
setne dl
neg dl
sbb edx, edx
mov byte [eax + 0x22], dl
mov dx, word [ecx + 0x48]
mov word [eax + 0x16], dx
mov dx, word [ecx + 0x4a]
mov word [eax + 0x14], dx
cmp dword [ebp + 8], 0
je 0x41ca85
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc