Function at 0x4014db
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
push ebx
push esi
xor ebx, ebx
push edi
mov word [ebp - 0x424], bx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call dword [0x403074]
mov dword [0x404408], eax
call dword [0x403070]
mov edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [0x40306c]
call dword [0x403068]
mov esi, eax
not esi
xor esi, edi
call dword [0x403064]
xor esi, eax
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
push 0x104
xor esi, eax
lea eax, [ebp - 0x62c]
push eax
push ebx
call dword [0x403060]
test eax, eax
jne 0x401587
call dword [0x40305c]
cmp eax, 0x78
jne 0x40156b
push 0x4032a8
call fcn.0040109e
pop ecx
mov dword [0x40440c], 0xfd
jmp 0x401782
push eax
push 0x403284
call fcn.0040109e
pop ecx
pop ecx
mov dword [0x40440c], 0xff
jmp 0x401782
push ebx
call dword [0x403058]
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp word [eax], 0x5a4d
jne 0x401754
cmp dword [ecx], 0x4550
jne 0x401754
movzx eax, word [ecx + 0x14]
lea ebx, [eax + ecx + 0x18]
movzx eax, word [ecx + 6]
xor edi, edi
test eax, eax
mov dword [ebp - 8], eax
jbe 0x4015ec
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 4]
push 8
mov edx, 0x403278
call fcn.00401046
test eax, eax
je 0x4015e1
add dword [ebp - 4], 0x28
inc edi
cmp edi, dword [ebp - 8]
jb 0x4015c2
jmp 0x4015ec
imul edi, edi, 0x28
mov edi, dword [edi + ebx + 0x14]
test edi, edi
jne 0x401606
push 0x403254
call fcn.0040109e
pop ecx
mov dword [0x40440c], 0xfe
jmp 0x401782
lea eax, [ebp - 0x424]
push eax
push 0x208
call dword [0x403054]
test eax, eax
jne 0x40162d
call dword [0x40305c]
push eax
push 0x403238
jmp 0x401571
xor ebx, ebx
cmp word [ebp - 0x424], bx
lea eax, [ebp - 0x424]
je 0x401645
inc eax
inc eax
cmp word [eax], bx
jne 0x40163e
push esi
mov esi, dword [0x403094]
push 0x40321c
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0xffffffffffffffff
push 0xffff000f
push edi
lea eax, [ebp - 0x62c]
push eax
call fcn.004010d0
cmp eax, ebx
je 0x40169a
lea ecx, [ebp - 0x424]
push ecx
push eax
push 0x4031f0
call fcn.0040109e
add esp, 0xc
mov dword [0x40440c], 0xf9
jmp 0x401782
lea eax, [ebp - 0x424]
push eax
call dword [0x403050]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x4016d8
call dword [0x40305c]
lea ecx, [ebp - 0x424]
push ecx
push eax
push 0x4031cc
call fcn.0040109e
add esp, 0xc
mov dword [0x40440c], 0xf9
jmp 0x401769
push 0x4031c0
push eax
call dword [0x40304c]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x401700
call dword [0x40305c]
lea ecx, [ebp - 0x424]
push ecx
push eax
push 0x403190
jmp 0x4016c1
lea eax, [ebp - 0x62c]
push eax
call dword [0x40302c]
add eax, 0x20
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.004013d6
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0xc], edi
jne 0x40172a
xor eax, eax
jmp 0x401736
cmp word [edi], bx
je 0x401736
inc eax
inc eax
cmp word [eax], bx
jne 0x40172f
lea ecx, [ebp - 0x62c]
push ecx
push 0x40317c
push eax
call esi
add esp, 0xc
push ebx
push edi
call dword [ebp - 8]
mov dword [0x40440c], eax
jmp 0x401769
push 0x403154
call fcn.0040109e
pop ecx
mov dword [0x40440c], 0xfe
cmp dword [ebp - 4], 0
je 0x401782
push dword [ebp - 4]
call dword [0x403048]
test eax, eax
jne 0x40176f
call dword [0x40305c]
cmp word [ebp - 0x424], 0
je 0x4017dc
lea eax, [ebp - 0x424]
push eax
call dword [0x403044]
cmp eax, 0xffffffff
je 0x4017dc
and eax, 0xfffffffa
push eax
lea eax, [ebp - 0x424]
push eax
call dword [0x403040]
push 0xa
pop esi
lea eax, [ebp - 0x424]
push eax
call dword [0x40303c]
test eax, eax
jne 0x4017dc
call dword [0x40305c]
cmp eax, 5
jne 0x4017dc
push 0x1f4
call dword [0x403038]
dec esi
jne 0x4017b2
mov ecx, dword [ebp - 0xc]
call fcn.00401010
push dword [0x40440c]
call dword [0x403034]
int3