Function at 0x138478
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe80
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 0x1386c6
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 0x1384c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1386d0
lea edx, [ebp - 0x60]
mov ecx, 0x40
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
cmp word [ebp - 0x60], 0x5a4d
je 0x1384e5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1386d0
xor ecx, ecx
mov edx, dword [ebp - 0x24]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x14]
lea edx, [ebp - 0x158]
mov ecx, 0xf8
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
cmp dword [ebp - 0x158], 0x4550
je 0x13851c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1386d0
lea eax, [ebp - 0x11]
mov edx, 8
call fcn.00129984
mov eax, dword [ebp + 8]
mov dword [ebp - 0xd], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x11], eax
movzx esi, word [ebp - 0x152]
dec esi
test esi, esi
jl 0x13855a
inc esi
lea edx, [ebp - 0x180]
mov ecx, 0x28
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
dec esi
jne 0x138545
mov eax, dword [ebp - 0x178]
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 - 0x178], esi
mov eax, esi
mov ecx, dword [ebp - 0x11c]
xor edx, edx
div ecx
inc eax
imul ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x170], eax
xor eax, eax
mov dword [ebp - 0x168], eax
xor eax, eax
mov dword [ebp - 0x164], eax
mov word [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0xe0000060
mov cx, 1
mov edx, 0xffffffd8
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x14]
lea edx, [ebp - 0x180]
mov ecx, 0x28
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebp - 0x174]
add esi, eax
mov dword [ebp - 0x108], esi
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x130], 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 - 0x158]
mov ecx, 0xf8
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [ebp - 0x16c]
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 0x13864a
lea edx, [ebp - 0x18]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x10]
dec esi
jne 0x138638
mov eax, dword [ebp - 0x16c]
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 - 0x16c]
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 - 0x16c]
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 0x1386d0
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8