Function at 0x10019ce8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [0x100201b0]
cmp eax, 1
je 0x10019d0c
mov eax, 0x1000000
jmp 0x10019ef4
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 8]
call dword [0x10020194]
test eax, eax
jne 0x10019d2a
mov eax, 0x200
jmp 0x10019ef4
lea eax, [ebp - 0x40]
push eax
call dword [0x1002018c]
lea eax, [ebp - 0x50]
push eax
call dword [0x100201a0]
mov esi, dword [0x100201b4]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x40]
push eax
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x50]
push eax
call esi
mov esi, dword [ebp - 0x24]
sub esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
sbb edi, dword [ebp - 0x18]
lea eax, [ebp - 0x70]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x28], eax
xor ebx, ebx
mov eax, dword [ebp + ebx*4 - 0x30]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
sub ecx, esi
sbb edx, edi
inc ebx
mov dword [eax], ecx
mov dword [eax + 4], edx
cmp ebx, 3
jl 0x10019d78
mov ecx, dword [ebp - 0x84]
xor eax, eax
xor ebx, ebx
mov edx, ecx
inc eax
and edx, eax
mov dword [ebp - 0xc], ebx
je 0x10019da7
mov dword [ebp - 0xc], eax
test cl, 2
je 0x10019db0
or dword [ebp - 0xc], 2
test cl, 4
je 0x10019db9
or dword [ebp - 0xc], 4
mov eax, ecx
and eax, 0x10
je 0x10019dc4
or dword [ebp - 0xc], 0x10
test cl, 0x20
je 0x10019dcd
or dword [ebp - 0xc], 0x20
cmp eax, ebx
je 0x10019dda
or dword [ebp - 0xc], 0x40000000
jmp 0x10019de1
or dword [ebp - 0xc], 0x80000000
or dword [ebp - 0xc], 0x1000000
cmp edx, ebx
jne 0x10019df3
or dword [ebp - 0xc], 0x800000
push ebx
push dword [ebp + 8]
call dword [0x1002015c]
mov dword [ebp - 0x14], eax
cmp eax, 0x28
jbe 0x10019e9a
mov esi, dword [0x1002025c]
push ebx
push ebx
push ebx
push dword [ebp + 8]
call esi
mov edi, dword [0x10020154]
push ebx
lea eax, [ebp - 0x10]
push eax
push 2
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call edi
push ebx
push ebx
push 0x24
push dword [ebp + 8]
call esi
push ebx
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call edi
mov eax, 0x54ad
cmp word [ebp - 8], ax
jne 0x10019e9a
mov eax, dword [ebp - 0x18]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x14], ecx
jbe 0x10019e9a
push ebx
push ebx
push eax
push dword [ebp + 8]
call esi
push ebx
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 0x20]
cmp eax, 0x5a4d
je 0x10019e93
cmp eax, 0x454e
je 0x10019e93
cmp eax, 0x454c
je 0x10019e93
cmp eax, 0x4550
jne 0x10019e9a
or dword [ebp - 0xc], 0x400000
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x10019ea6
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x10019eb2
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x10019eca
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov esi, dword [ebp + 0x18]
cmp esi, ebx
je 0x10019ef2
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [0x100201ac]
movzx eax, word [ebp + 8]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14