Function at 0x1007b0e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x1007b13c
jmp 0x1007b38a
mov edx, dword [ebp - 4]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x1007b14e
jmp 0x1007b38a
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0x4550
je 0x1007b16a
jmp 0x1007b38a
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x748]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x28]
sub ecx, edx
mov dword [ebp - 0x20], ecx
jne 0x1007b185
jmp 0x1007b38a
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.1007ace0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x10]
jae 0x1007b36e
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jne 0x1007b1d9
jmp 0x1007b36e
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x14]
jae 0x1007b1e6
jmp 0x1007b36e
mov edx, dword [ebp - 0xc]
add edx, 8
mov dword [ebp - 0x14], edx
jmp 0x1007b1fa
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 8]
jae 0x1007b35d
mov edx, dword [ebp - 0x14]
movzx eax, word [edx]
sar eax, 0xc
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
and edx, 0xfff
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x28]
mov edx, dword [ebp - 0xc]
add ecx, dword [edx]
add ecx, dword [ebp - 0x28]
mov dword [ebp - 0x30], ecx
lea eax, [ebp - 0x18]
push eax
push 0x40
push 8
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x754]
call eax
movzx ecx, word [ebp - 0x2c]
test ecx, ecx
jne 0x1007b257
jmp 0x1007b322
movzx edx, word [ebp - 0x2c]
cmp edx, 1
jne 0x1007b281
mov eax, dword [ebp - 0x20]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp - 0x30]
movzx eax, word [edx]
add eax, ecx
mov ecx, dword [ebp - 0x30]
mov word [ecx], ax
jmp 0x1007b322
movzx edx, word [ebp - 0x2c]
cmp edx, 2
jne 0x1007b2a5
mov eax, dword [ebp - 0x20]
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp - 0x30]
movzx eax, word [edx]
add eax, ecx
mov ecx, dword [ebp - 0x30]
mov word [ecx], ax
jmp 0x1007b322
movzx edx, word [ebp - 0x2c]
cmp edx, 3
jne 0x1007b2bd
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x30]
mov dword [edx], ecx
jmp 0x1007b322
movzx eax, word [ebp - 0x2c]
cmp eax, 4
jne 0x1007b2fc
mov ecx, dword [ebp - 0x30]
movzx edx, word [ecx]
shl edx, 0x10
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 2]
mov eax, dword [ebp - 0x20]
lea ecx, [ecx + eax + 0x8000]
or edx, ecx
shr edx, 0x10
and edx, 0xffff
mov eax, dword [ebp - 0x30]
mov word [eax], dx
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
jmp 0x1007b322
movzx edx, word [ebp - 0x2c]
cmp edx, 0xa
jne 0x1007b31e
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, dword [ebp - 0x30]
add eax, dword [edx]
mov edx, dword [edx + 4]
adc edx, ecx
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x1007b322
xor eax, eax
jmp 0x1007b38f
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x18]
push eax
push 8
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x754]
call eax
push 8
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x768]
call eax
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x764]
call edx
jmp 0x1007b1f1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
jmp 0x1007b1ae
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.1007ac80
xor edx, edx
jne 0x1007b128
mov eax, 1
mov esp, ebp
pop ebp
ret 8