Function at 0x4010be
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 0x28], edx
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x50]
call fcn.00401024
test eax, eax
je 0x4013d9
push esi
xor esi, esi
mov eax, 0x5a4d
mov dword [ebp - 4], esi
cmp word [ebx + 0x2804], ax
jne 0x4013d6
mov edi, dword [ebx + 0x2840]
mov dword [ebp - 8], edi
cmp dword [edi + ebx + 0x2804], 0x4550
jne 0x4013d6
movzx eax, word [edi + ebx + 0x280a]
xor edx, edx
test eax, eax
je 0x401151
lea ecx, [ebx + 0x290c]
add ecx, edi
mov eax, dword [ecx + 4]
add eax, dword [ecx]
cmp eax, dword [ebx + 0x4d804]
ja 0x4013d6
movzx eax, word [edi + ebx + 0x280a]
inc edx
add ecx, 0x28
cmp edx, eax
jl 0x401130
mov eax, dword [edi + ebx + 0x2854]
push 0x40
push 0x1000
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
call dword [ebp - 0x3c]
mov esi, dword [ebp - 4]
test esi, esi
je 0x4013c8
movzx ecx, word [edi + ebx + 0x280a]
xor edx, edx
mov eax, ecx
mov dword [ebp - 0x18], ecx
imul eax, eax, 0x28
add eax, dword [edi + ebx + 0x2858]
test eax, eax
jle 0x4011b7
mov ecx, eax
mov al, byte [edx + ebx + 0x2804]
mov byte [edx + esi], al
inc edx
mov esi, dword [ebp - 4]
cmp edx, ecx
jl 0x40119b
movzx eax, word [edi + ebx + 0x280a]
jmp 0x4011ba
mov eax, dword [ebp - 0x18]
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0xc], ecx
cmp dx, ax
jae 0x40121e
lea edx, [ebx + 0x290c]
add edx, edi
mov eax, dword [edx - 4]
test eax, eax
je 0x40120b
cmp dword [edx], 0
je 0x40120b
and dword [ebp - 0x1c], 0
add eax, esi
cmp dword [edx], 0
mov dword [ebp - 0x18], eax
jbe 0x40120b
mov edi, dword [ebp - 0x1c]
mov esi, eax
mov eax, dword [edx + 4]
lea ecx, [edi + ebx]
mov al, byte [ecx + eax + 0x2804]
mov byte [edi + esi], al
inc edi
cmp edi, dword [edx]
jb 0x4011ed
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movzx eax, word [edi + ebx + 0x280a]
inc ecx
add edx, 0x28
mov dword [ebp - 0xc], ecx
cmp ecx, eax
jl 0x4011ce
mov eax, dword [edi + ebx + 0x28a4]
test eax, eax
je 0x4012ae
cmp dword [edi + ebx + 0x28a8], 0
jbe 0x4012ae
mov ecx, esi
sub ecx, dword [edi + ebx + 0x2838]
mov dword [ebp - 0x18], ecx
lea ecx, [eax + esi]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
add eax, edx
je 0x4012ae
lea eax, [edx - 8]
shr eax, 1
push 0
mov dword [ebp - 0x1c], eax
pop edi
je 0x40129d
mov ebx, eax
movzx eax, word [ecx + edi*2 + 8]
mov edx, eax
mov dword [ebp - 0x1c], 0x3000
and edx, 0xf000
cmp dx, word [ebp - 0x1c]
je 0x401285
mov dword [ebp - 0x1c], 0xa000
cmp dx, word [ebp - 0x1c]
jne 0x401295
mov edx, dword [ebp - 0x18]
and eax, 0xfff
add eax, dword [ecx]
add dword [eax + esi], edx
mov esi, dword [ebp - 4]
inc edi
cmp edi, ebx
jl 0x40125e
mov edx, dword [ecx + 4]
add ecx, edx
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
add eax, edx
jne 0x40124f
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 8]
mov eax, dword [edi + ebx + 0x2884]
test eax, eax
je 0x4013d6
add eax, esi
jmp 0x40139e
mov edx, dword [eax + 0x10]
add ecx, esi
mov eax, dword [eax + 0xc]
add edx, esi
and dword [ebp - 8], 0
add eax, esi
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x24], edx
push eax
mov dword [ebp - 0x18], ecx
call dword [ebp - 0x48]
push 1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [ebp - 0x44]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x38]
push eax
push 0
push 0
call dword [ebp - 0x40]
lea eax, [ebp - 0x38]
push eax
call dword [ebp - 0x4c]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4013dd
mov eax, dword [ebp - 0x18]
xor esi, esi
mov dword [ebp - 0x10], esi
mov eax, dword [eax]
test eax, eax
je 0x401395
and dword [ebp - 0x14], esi
and dword [ebp - 0xc], 0
test eax, eax
jns 0x401341
movzx eax, ax
test eax, eax
je 0x4013dd
lea edx, [ebp - 0xc]
push edx
push eax
push 0
push ecx
call dword [ebp - 0x50]
jmp 0x40136a
mov esi, dword [ebp - 4]
add eax, 2
add eax, esi
je 0x4013d6
push eax
lea eax, [ebp - 0x30]
push eax
call dword [ebp - 0x48]
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 8]
call dword [ebp - 0x50]
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4013dd
mov ecx, dword [ebp - 0x14]
inc esi
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], esi
mov dword [ecx + edx], eax
mov ecx, esi
mov eax, dword [ebp - 0x18]
shl ecx, 2
mov dword [ebp - 0x14], ecx
mov eax, dword [ecx + eax]
test eax, eax
je 0x401395
mov ecx, dword [ebp - 8]
jmp 0x401321
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 4]
add eax, 0x14
mov ecx, dword [eax]
mov dword [ebp - 0x1c], eax
test ecx, ecx
jne 0x4012c4
mov eax, dword [edi + ebx + 0x282c]
mov dword [edi + ebx + 0x2838], esi
push dword [ebp - 4]
add eax, dword [ebp - 4]
push 1
push 0
call eax
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
mov ecx, esi
mov edx, dword [edx]
call fcn.004013e2
mov esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret
mov esi, dword [ebp - 4]
jmp 0x4013d6