Function at 0x189b728
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x10124584]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x100f5124]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x189b75f
mov eax, 0x200
jmp 0x189b971
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x40]
and eax, 1
je 0x189b77d
mov eax, dword [ebp - 0x44]
or eax, 1
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
and eax, 2
je 0x189b78e
mov eax, dword [ebp - 0x44]
or eax, 2
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
and eax, 4
je 0x189b79f
mov eax, dword [ebp - 0x44]
or eax, 4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
and eax, 0x10
je 0x189b7b0
mov eax, dword [ebp - 0x44]
or eax, 0x10
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
and eax, 0x20
je 0x189b7c1
mov eax, dword [ebp - 0x44]
or eax, 0x20
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
and eax, 0x10
je 0x189b7d6
mov eax, dword [ebp - 0x44]
or eax, 0x40000000
mov dword [ebp - 0x44], eax
jmp 0x189b7e1
mov eax, dword [ebp - 0x44]
or eax, 0x80000000
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
or eax, 0x1000000
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
and eax, 1
je 0x189b7f6
jmp 0x189b801
mov eax, dword [ebp - 0x44]
or eax, 0x800000
mov dword [ebp - 0x44], eax
push 0
mov eax, dword [ebp + 8]
push eax
call dword [0x100f50b0]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0x28
jbe 0x189b8d3
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [0x100f5100]
push 0
lea eax, [ebp - 0x48]
push eax
push 2
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x100f50b4]
push 0
push 0
push 0x24
mov eax, dword [ebp + 8]
push eax
call dword [0x100f5100]
push 0
lea eax, [ebp - 0x48]
push eax
push 4
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x100f50b4]
movzx eax, word [ebp - 0x50]
cmp eax, 0x54ad
jne 0x189b8d3
mov eax, dword [ebp - 0x54]
add eax, 0x34
cmp dword [ebp - 0x4c], eax
jbe 0x189b8d3
push 0
push 0
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x100f5100]
push 0
lea eax, [ebp - 0x48]
push eax
push 4
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x100f50b4]
cmp dword [ebp - 0x58], 0x5a4d
je 0x189b8c8
cmp dword [ebp - 0x58], 0x454e
je 0x189b8c8
cmp dword [ebp - 0x58], 0x454c
je 0x189b8c8
cmp dword [ebp - 0x58], 0x4550
jne 0x189b8d3
mov eax, dword [ebp - 0x44]
or eax, 0x400000
mov dword [ebp - 0x44], eax
cmp dword [ebp + 0xc], 0
je 0x189b8e1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
mov dword [eax], ecx
cmp dword [ebp + 0x10], 0
je 0x189b8ef
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x4c]
mov dword [eax], ecx
cmp dword [ebp + 0x14], 0
je 0x189b93f
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0189b628
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0189b628
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0189b628
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
cmp dword [ebp + 0x18], 0
je 0x189b96f
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.0189b668
add esp, 0x10
movzx eax, word [ebp - 0x60]
movzx ecx, word [ebp - 0x5c]
shl ecx, 0x10
or eax, ecx
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.018bb05e
mov esp, ebp
pop ebp
ret