Function at 0x1489a450
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
lea eax, [ebp + 8]
call fcn.1487410c
xor eax, eax
push ebp
push 0x1489a722
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov ebx, esi
cmp word [ebx], 0x5a4d
jne 0x1489a70c
mov edi, esi
add edi, dword [ebx + 0x3c]
cmp dword [edi], 0x4550
jne 0x1489a70c
mov eax, dword [ebp - 4]
push eax
push 0
push 0x1f0fff
call fcn.14876ab0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1489a70c
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x50]
add eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x44], eax
push 0
push 0x8000000
push 0x40
lea eax, [ebp - 0x20]
push eax
push 0
push 0xf001f
lea eax, [ebp - 0x14]
push eax
call fcn.14877278
push 0x40
push 0
push 1
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.14877270
mov dword [ebp - 0x2c], eax
push 0x40
push 0
push 1
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.14876988
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.14877270
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, 0x1489a44c
sub eax, 0x1489a19c
mov dword [ebp - 0x28], eax
push 0
push 0x8000000
push 0x40
lea eax, [ebp - 0x28]
push eax
push 0
push 0xf001f
lea eax, [ebp - 0x18]
push eax
call fcn.14877278
push 0x40
push 0
push 1
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.14877270
mov dword [ebp - 0x34], eax
push 0x40
push 0
push 1
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.14876988
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.14877270
cmp dword [ebp - 0x2c], 0
jne 0x1489a70c
cmp dword [ebp - 0x30], 0
jne 0x1489a70c
cmp dword [ebp - 0x34], 0
jne 0x1489a70c
test eax, eax
jne 0x1489a70c
mov ecx, dword [edi + 0x54]
mov edx, esi
mov eax, dword [ebp - 0x3c]
call fcn.14876c64
mov ecx, 0x1489a44c
mov eax, 0x1489a19c
sub ecx, eax
mov edx, eax
mov eax, dword [ebp - 0x44]
call fcn.14876c64
lea edx, [ebp - 8]
mov eax, dword [edi + 0x50]
add eax, dword [ebp - 0x3c]
mov ecx, 4
call fcn.14876c64
mov eax, dword [edi + 0x50]
add eax, dword [ebp - 0x3c]
add eax, 4
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.14876c64
mov eax, dword [ebp + 8]
call fcn.14873de8
inc eax
add eax, eax
push eax
mov eax, dword [ebp + 8]
call fcn.14873dd8
mov edx, eax
mov eax, dword [edi + 0x50]
add eax, dword [ebp - 0x3c]
add eax, 4
add eax, dword [ebp - 8]
pop ecx
call fcn.14876c64
movzx eax, word [edi + 6]
dec eax
test eax, eax
jl 0x1489a697
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0
mov eax, esi
mov edx, eax
add edx, dword [ebx + 0x3c]
add edx, 0xf8
mov ecx, dword [ebp - 0x48]
shl ecx, 3
lea ecx, [ecx + ecx*4]
add edx, ecx
mov ecx, dword [edx + 0x10]
push ecx
mov ecx, dword [edx + 0xc]
add ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [edx + 0x14]
add edx, eax
pop eax
pop ecx
call fcn.14876c64
inc dword [ebp - 0x48]
dec dword [ebp - 0x4c]
jne 0x1489a660
mov edx, dword [edi + 0x34]
mov eax, dword [ebp - 0x38]
cmp edx, eax
je 0x1489a6c6
sub eax, edx
push eax
push edi
mov eax, dword [ebp - 0x3c]
push eax
call fcn.14898c94
mov eax, dword [ebp - 0x38]
mov dword [edi + 0x34], eax
mov eax, dword [ebp - 0x3c]
add eax, dword [ebx + 0x3c]
mov ecx, 0xf8
mov edx, edi
call fcn.14876c64
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
call fcn.1489a09c
test al, al
je 0x1489a6dc
mov byte [ebp - 9], 1
mov eax, dword [ebp - 0x3c]
push eax
call fcn.14876988
push eax
call fcn.14877268
mov eax, dword [ebp - 0x44]
push eax
call fcn.14876988
push eax
call fcn.14877268
mov eax, dword [ebp - 0x18]
push eax
call fcn.148768c8
mov eax, dword [ebp - 0x14]
push eax
call fcn.148768c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1489a729
lea eax, [ebp + 8]
call fcn.14873c58
ret