Function at 0x4116e6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
je 0x411712
push dword [ebp + 8]
call fcn.00410859
pop ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
push 0x38
lea eax, [ebp - 0x4c]
push esi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
cmp ebx, 0x40
jb 0x411749
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x411749
mov ecx, dword [eax + 0x3c]
cmp ecx, ebx
ja 0x411749
add eax, ecx
mov esi, ebx
mov dword [ebp - 0x48], eax
sub esi, ecx
mov edx, 0xf8
mov ecx, eax
mov dword [ebp - 0x44], ecx
cmp esi, edx
jb 0x4117ac
cmp dword [eax], 0x4550
jne 0x4117ac
lea edi, [eax + 0x18]
lea ebx, [edx + 0x13]
cmp word [edi], bx
jne 0x4117ac
and dword [ebp - 0x44], 0
mov ecx, edi
mov dword [ebp - 0x3c], ecx
add ecx, 0x60
lea edx, [eax + 4]
lea ebx, [eax + 0xf8]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x30], ebx
lea ecx, [esi - 0xf8]
movzx esi, word [edx + 2]
mov dword [ebp - 0x20], esi
test esi, esi
je 0x411817
imul esi, esi, 0x28
cmp ecx, esi
jae 0x411800
mov dword [ebp - 4], 0x26
jmp 0x411957
cmp esi, 0x108
jb 0x4117ee
cmp dword [eax], 0x4550
jne 0x4117ee
lea ebx, [eax + 0x18]
mov eax, 0x20b
cmp word [ebx], ax
jne 0x4117ee
xor eax, eax
mov dword [ebp - 0x38], ebx
add ebx, 0x70
lea edx, [ecx + 4]
mov dword [ebp - 0x34], ebx
lea ebx, [ecx + 0x108]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x30], ebx
lea ecx, [esi - 0x108]
jmp 0x41178e
cmp esi, edx
sbb eax, eax
and eax, 0x1b
add eax, 0xb
mov dword [ebp - 4], eax
jmp 0x411957
push 7
lea esi, [esi + ebx - 0x28]
pop ecx
mov edi, str..debug
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x411823
dec dword [ebp - 0x20]
jne 0x411823
mov dword [ebp - 4], 0xb
jmp 0x411957
mov esi, dword [ebp - 0x20]
mov ecx, dword [edx + 4]
xor edi, edi
cmp eax, edi
setne al
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x18], al
cmp esi, edi
jbe 0x411865
mov ecx, dword [ebp - 0x30]
add ecx, 0x10
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
add eax, edx
cmp eax, edx
jb 0x411850
cmp eax, 0xffffffff
jbe 0x411857
mov dword [ebp - 4], 0xb
cmp eax, dword [ebp - 0x2c]
jbe 0x41185f
mov dword [ebp - 0x2c], eax
add ecx, 0x28
dec esi
jne 0x411840
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 4], edi
jne 0x411957
mov eax, dword [ebp - 0x34]
mov esi, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
add ebx, esi
cmp ebx, esi
jbe 0x411957
cmp ebx, 0xffffffff
ja 0x411957
xor edx, edx
cmp edx, dword [ebp - 8]
ja 0x411957
jb 0x4118a6
cmp esi, dword [ebp - 0xc]
jae 0x411957
lea eax, [esi + 8]
cmp eax, ebx
ja 0x411957
xor ecx, ecx
cmp ecx, dword [ebp - 8]
ja 0x411957
jb 0x4118c7
cmp eax, dword [ebp - 0xc]
ja 0x411957
cmp ebx, dword [ebp + 0x10]
jae 0x4118de
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + eax]
mov eax, dword [esi + eax + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
jmp 0x41190b
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
je 0x41190b
push edx
push esi
push dword [ebp + 8]
call fcn.0041083f
push 0
push 8
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.00411682
add esp, 0x1c
mov dword [ebp - 4], eax
xor edi, edi
cmp dword [ebp - 4], edi
jne 0x41194c
mov eax, dword [ebp - 0x14]
add eax, esi
cmp eax, esi
jbe 0x41194c
cmp eax, ebx
ja 0x41194c
cmp dword [ebp - 0x28], edi
jne 0x411927
mov dword [ebp - 0x28], esi
lea esi, [eax + 7]
and esi, 0xfffffff8
cmp word [ebp - 0x10], di
je 0x411890
cmp word [ebp - 0xe], di
je 0x411890
lea eax, [esi + 8]
mov dword [ebp - 0x24], eax
jmp 0x411890
xor ebx, ebx
cmp dword [ebp - 4], edi
je 0x411890
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
push 0xe
pop ecx
lea esi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
leave
ret