Function at 0x131c09f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46cdea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x60]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
je 0x131c0a4d
lea edx, [ebp - 0x14]
mov eax, 0x46caf0
call fcn.1315a604
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x46ca94]
call fcn.13160a54
call fcn.13158080
mov eax, dword [ebp - 4]
mov esi, eax
lea edi, [ebx + 8]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x44]
mov esi, eax
mov ecx, eax
sub ecx, 0x40
mov edx, dword [ebp - 4]
add edx, 0x40
mov eax, dword [ebx + 0x64]
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebp - 4]
add eax, esi
cmp dword [eax], 0x4550
je 0x131c0aa2
lea edx, [ebp - 0x18]
mov eax, 0x46caf8
call fcn.1315a604
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x46ca94]
call fcn.13160a54
call fcn.13158080
add esi, 4
mov eax, dword [ebp - 4]
add eax, esi
push esi
mov esi, eax
lea edi, [ebx + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
add esi, 0x14
mov edi, dword [ebp - 4]
add edi, esi
cmp word [edi], 0x10b
je 0x131c0ae6
lea edx, [ebp - 0x1c]
mov eax, 0x46cb00
call fcn.1315a604
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x46ca94]
call fcn.13160a54
call fcn.13158080
movzx edx, word [ebx + 0x58]
lea eax, [ebx + 0x5c]
call fcn.13156570
movzx ecx, word [ebx + 0x58]
mov edx, dword [ebx + 0x5c]
mov eax, edi
call fcn.131567dc
movzx eax, word [ebx + 0x58]
add esi, eax
mov edi, dword [ebp - 4]
add edi, esi
movzx eax, word [ebx + 0x4a]
shl eax, 3
lea eax, [eax + eax*4]
add eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x14]
sub eax, dword [ebp - 0xc]
mov dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 0
jle 0x131c0b45
mov eax, dword [ebx + 0x6c]
call fcn.13156530
mov dword [ebx + 0x68], eax
mov edx, dword [ebx + 0x68]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebx + 0x6c]
call fcn.131567dc
movzx eax, word [ebx + 0x4a]
dec eax
test eax, eax
jl 0x131c0b7f
inc eax
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 4]
add edi, esi
push edi
mov eax, dword [edi + 0x14]
add eax, dword [ebp - 4]
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x46c918]
call fcn.131c12c4
mov edx, eax
mov eax, dword [ebx + 0x60]
call fcn.13179578
add esi, 0x28
dec dword [ebp - 0x10]
jne 0x131c0b52
mov esi, dword [edi + 0x14]
add esi, dword [edi + 0x10]
mov edi, dword [ebp - 8]
sub edi, esi
mov dword [ebx + 0x74], edi
test edi, edi
jle 0x131c0bab
mov eax, edi
call fcn.13156530
mov dword [ebx + 0x70], eax
mov edx, dword [ebx + 0x70]
mov eax, dword [ebp - 4]
add eax, esi
mov ecx, dword [ebx + 0x74]
call fcn.131567dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46cdf1
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.13158790
ret