Function at 0x1386dc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe70
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov byte [ebp - 9], 0
xor eax, eax
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x13892a
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
mov eax, ebx
call fcn.001274a4
cmp dword [ebp + 8], 0
jne 0x138725
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x138934
lea edx, [ebp - 0x60]
mov ecx, 0x40
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
cmp word [ebp - 0x60], 0x5a4d
je 0x138749
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x138934
xor ecx, ecx
mov edx, dword [ebp - 0x24]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x14]
lea edx, [ebp - 0x168]
mov ecx, 0x108
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
cmp dword [ebp - 0x168], 0x4550
je 0x138780
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x138934
lea eax, [ebp - 0x11]
mov edx, 8
call fcn.00129984
mov eax, dword [ebp + 8]
mov dword [ebp - 0xd], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x11], eax
movzx esi, word [ebp - 0x162]
dec esi
test esi, esi
jl 0x1387be
inc esi
lea edx, [ebp - 0x190]
mov ecx, 0x28
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
dec esi
jne 0x1387a9
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
add eax, 8
add eax, dword [ebp + 8]
mov esi, dword [ebp - 0x20]
add esi, eax
mov dword [ebp - 0x188], esi
mov eax, esi
mov ecx, dword [ebp - 0x12c]
xor edx, edx
div ecx
inc eax
imul ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x180], eax
xor eax, eax
mov dword [ebp - 0x178], eax
xor eax, eax
mov dword [ebp - 0x174], eax
mov word [ebp - 0x170], 0
mov dword [ebp - 0x16c], 0xe0000060
mov cx, 1
mov edx, 0xffffffd8
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x14]
lea edx, [ebp - 0x190]
mov ecx, 0x28
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebp - 0x184]
add esi, eax
mov dword [ebp - 0x118], esi
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x140], eax
xor eax, eax
mov dword [ebp - 0x88], eax
xor eax, eax
mov dword [ebp - 0x84], eax
xor ecx, ecx
mov edx, dword [ebp - 0x24]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x14]
lea edx, [ebp - 0x168]
mov ecx, 0x108
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [ebp - 0x17c]
add edx, dword [ebp - 0x20]
xor ecx, ecx
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x14]
mov esi, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
test esi, esi
jle 0x1388ae
lea edx, [ebp - 0x18]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x10]
dec esi
jne 0x13889c
mov eax, dword [ebp - 0x17c]
add eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, eax
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x14]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x10]
mov eax, dword [ebp - 0x17c]
add eax, dword [ebp - 0x20]
add eax, dword [ebp - 8]
xor ecx, ecx
mov edx, eax
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x14]
lea edx, [ebp - 0x11]
mov ecx, 8
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x10]
mov eax, dword [ebp - 0x17c]
add eax, dword [ebp - 0x20]
add eax, dword [ebp - 8]
add eax, 8
xor ecx, ecx
mov edx, eax
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x14]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x138934
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8