Function at 0x413536
Capabilities:
Parse pe header

Disassembly:
push ebp
sub esp, 0x68
lea ebp, [esp - 4]
mov eax, dword [0x448490]
xor eax, ebp
mov dword [ebp + 0x68], eax
push 0x3c
mov eax, 0x433ed0
call fcn.0041efdd
mov esi, dword [ebp + 0x78]
xor ebx, ebx
xor eax, eax
mov byte [ebp + 8], bl
lea edi, [ebp + 0xc]
stosd dword es:[edi], eax
mov ecx, esi
stosd dword es:[edi], eax
call fcn.0040e6ff
test al, al
je 0x413734
push 0x40
lea eax, [ebp + 0x28]
push eax
mov ecx, esi
call fcn.0040e777
cmp eax, 0x40
jne 0x413734
mov eax, 0x5a4d
cmp ax, word [ebp + 0x28]
jne 0x413734
mov eax, dword [ebp + 0x64]
mov dword [ebp], eax
push ebx
lea eax, [ebp]
push eax
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
mov dword [ebp + 4], ebx
call fcn.0040e738
push 4
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.0040e777
cmp eax, 4
jne 0x413734
cmp dword [ebp - 0x30], 0x4550
jne 0x413734
mov eax, dword [ebp + 0x64]
add eax, 4
mov dword [ebp], eax
push ebx
lea eax, [ebp]
push eax
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
mov dword [ebp + 4], ebx
call fcn.0040e738
push 0x14
lea eax, [ebp + 0x14]
push eax
mov ecx, esi
call fcn.0040e777
cmp eax, 0x14
jne 0x413734
cmp word [ebp + 0x24], bx
jbe 0x413734
movzx eax, word [ebp + 0x24]
push eax
lea ecx, [ebp - 0x20]
call fcn.00401537
mov eax, dword [ebp + 0x64]
add eax, 0x18
mov dword [ebp], eax
push ebx
lea eax, [ebp]
push eax
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp + 4], ebx
call fcn.0040e738
mov edi, dword [ebp - 0x1c]
push edi
push ebx
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.00413222
cmp eax, edi
je 0x41365c
push dword [ebp - 0x20]
call fcn.0041e8f4
jmp 0x413733
push ebx
lea ecx, [ebp - 0x20]
call fcn.00401148
movzx eax, word [eax]
cmp eax, 0x10b
je 0x413676
cmp eax, 0x20b
jne 0x41364f
cmp word [ebp + 0x16], bx
jbe 0x41364f
movzx eax, word [ebp + 0x16]
imul eax, eax, 0x28
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401537
movzx eax, word [ebp + 0x24]
mov ecx, dword [ebp + 0x64]
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 0x14], eax
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], ebx
call fcn.0040e738
mov edi, dword [ebp - 0x28]
push edi
push ebx
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00413222
cmp eax, edi
jne 0x413722
xor edi, edi
mov dword [ebp + 4], ebx
mov dword [ebp - 0x10], ebx
xor eax, eax
jmp 0x4136fb
movzx eax, word [ebp - 0x10]
imul eax, eax, 0x28
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401148
mov ecx, dword [ebp + 4]
cmp dword [eax + 0x14], ecx
jbe 0x4136f4
mov ecx, dword [eax + 0x14]
mov edi, dword [eax + 0x10]
add edi, ecx
mov dword [ebp + 4], ecx
inc dword [ebp - 0x10]
mov ax, word [ebp - 0x10]
cmp ax, word [ebp + 0x16]
jb 0x4136d1
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.0040e708
cmp dword [ebp - 0x3c], ebx
jne 0x413722
mov eax, dword [ebp - 0x40]
cmp edi, eax
ja 0x413722
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x10], eax
mov byte [ebp + 8], 1
push dword [ebp - 0x2c]
call fcn.0041e8f4
push dword [ebp - 0x20]
call fcn.0041e8f4
pop ecx
pop ecx
mov eax, dword [ebp + 0x74]
mov edi, eax
lea esi, [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x68]
xor ecx, ebp
call fcn.0041efce
add ebp, 0x6c
leave
ret