Function at 0x407d90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], 0
mov ebx, eax
mov esi, ebx
movzx eax, word [esi]
cmp eax, 0x5a4d
jne 0x408002
mov eax, dword [esi + 0x3c]
add eax, ebx
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
cmp eax, 0x4550
jne 0x408002
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x18], eax
push 0x40
push 0x3000
mov eax, dword [ebp - 0x20]
push dword [eax + 0x50]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x34]
push 0xffffffffffffffff
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x79a]
call eax
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x407e17
mov eax, dword [ebp - 0x20]
push dword [eax + 0x50]
call fcn.004017a0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x408002
push 0
mov eax, dword [ebp - 0x20]
push dword [eax + 0x54]
push ebx
push dword [ebp - 0x1c]
push 0xffffffffffffffff
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x7ea]
call edx
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x3c]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0x20]
add eax, 0xf8
mov esi, eax
mov edx, dword [ebp - 0x20]
movzx eax, word [edx + 6]
dec eax
mov edi, eax
mov dword [ebp - 0x14], 0
cmp edi, dword [ebp - 0x14]
jb 0x407ec3
dec dword [ebp - 0x14]
nop
inc dword [ebp - 0x14]
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x407e8f
push dword [esi + 8]
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0x1c]
push eax
call fcn.00401330
jmp 0x407eae
push 0
push dword [esi + 0x10]
mov eax, dword [esi + 0x14]
add eax, ebx
push eax
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0x1c]
push eax
push 0xffffffffffffffff
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x7ea]
call eax
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0x1c]
mov dword [esi + 8], eax
mov eax, esi
add eax, 0x28
mov esi, eax
cmp edi, dword [ebp - 0x14]
ja 0x407e74
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0xa0]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
jmp 0x407f4b
mov eax, dword [edx + 4]
sub eax, 8
shr eax, 1
and eax, 0xfffffffe
mov dword [ebp - 0xc], eax
mov eax, edx
add eax, 8
mov ecx, eax
mov eax, dword [ebp - 0xc]
dec eax
mov ebx, eax
mov dword [ebp - 0x14], 0
cmp ebx, dword [ebp - 0x14]
jb 0x407f44
dec dword [ebp - 0x14]
mov esi, esi
inc dword [ebp - 0x14]
mov ax, word [ecx]
and eax, 0xffff
shr eax, 0xc
cmp eax, 3
je 0x407f20
cmp eax, 0xa
jne 0x407f38
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x18]
mov esi, dword [edx]
add esi, dword [ebp - 0x1c]
mov di, word [ecx]
and edi, 0xfff
add esi, edi
add dword [esi], eax
mov eax, ecx
add eax, 2
mov ecx, eax
cmp ebx, dword [ebp - 0x14]
ja 0x407f08
mov eax, dword [edx + 4]
add eax, edx
mov edx, eax
mov esi, edx
mov ebx, 0
mov eax, dword [ebp - 0x10]
mov edi, 0
sub esi, eax
sbb ebx, edi
mov eax, dword [ebp - 0x20]
mov edi, dword [eax + 0xa4]
mov eax, 0
cmp ebx, eax
jl 0x407edc
jg 0x407f7e
cmp esi, edi
jb 0x407edc
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x80]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
jmp 0x407fda
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 0x1c]
push eax
call fcn.00401660
mov edi, eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
add eax, dword [ebp - 0x1c]
mov ebx, eax
jmp 0x407fd0
mov eax, dword [ebx]
add eax, dword [ebp - 0x1c]
mov esi, eax
lea eax, [esi + 2]
push eax
push edi
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x7be]
call edx
mov dword [ebx], eax
mov eax, ebx
add eax, 4
mov ebx, eax
mov eax, dword [ebx]
test eax, eax
jne 0x407fb0
add dword [ebp - 8], 0x14
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x407f90
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x28]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
push 0
push 1
push dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
leave
ret 8