Function at 0x40bf20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
mov esi, 1
push edi
lea eax, [ebp - 0x74]
mov dword [ebp - 8], esi
call fcn.0040db90
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx + 4]
mov edx, dword [ebp - 8]
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
sub eax, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x70], eax
mov eax, dword [ecx + edx*4]
cmp word [eax + 8], 0x33
mov dword [ebp - 0x74], 3
jne 0x42bdba
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x44], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
add dword [eax], esi
add dword [ebp - 8], esi
mov dword [ebp - 0x40], edx
lea edx, [ebp - 0x10]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
push edx
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
lea esi, [ebp - 0x44]
call fcn.0040c2c0
mov esi, dword [ebp - 0xc]
test esi, esi
jne 0x40c1d0
lea esi, [ebp - 0x24]
call fcn.00408f40
mov eax, 1
mov edx, esi
xor ecx, ecx
lea esi, [ebp - 0x44]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 0
call fcn.00401980
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0xc]
push edx
mov ecx, 1
call fcn.0040c2c0
mov esi, dword [ebp - 0xc]
cmp dword [esi + 8], 5
je 0x42bdd2
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + ecx*4]
cmp word [eax + 8], 0
mov dword [ebp - 0x68], esi
je 0x42be23
inc dword [ebp - 8]
push 0xffffffffffffffff
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
push ebx
call fcn.0040a780
test eax, eax
jne 0x42c175
lea eax, [ebp - 0x24]
push eax
mov ebx, esi
call fcn.00408e80
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx*4]
cmp word [eax + 8], 0
jne 0x42c162
cmp dword [eax], 0xf
jne 0x42c162
inc dword [ebp - 8]
push 0xffffffffffffffff
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.0040a780
test eax, eax
jne 0x42c175
lea eax, [ebp - 0x24]
push eax
lea ebx, [ebp - 0x64]
call fcn.00408e80
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx*4]
cmp word [eax + 8], 0
je 0x42bfcb
lea esi, [ebp - 0x54]
call fcn.00408f40
mov eax, 1
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0xc]
mov esi, 4
cmp dword [eax + 8], esi
je 0x42c003
cmp dword [ebp - 0x5c], esi
je 0x42c00e
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx + 4]
mov eax, dword [ebp - 8]
mov eax, dword [edx + eax*4]
cmp word [eax + 8], 0x7f
jne 0x42c01c
xor ebx, ebx
xor dl, dl
mov edi, edi
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
cmp eax, dword [0x4a90f8]
jg 0x40c12c
test eax, eax
jle 0x40c12c
shl eax, 4
add eax, dword [0x4a912c]
je 0x40c12c
test dl, dl
jne 0x40c12c
mov eax, dword [eax + 4]
mov eax, dword [eax]
cmp word [eax + 8], 0
jne 0x40c0e0
mov eax, dword [eax]
sub eax, 0xd
je 0x42c058
dec eax
jne 0x40c0e0
test ebx, ebx
jne 0x42c052
dec ecx
mov dl, 1
mov dword [ebp - 0x6c], ecx
jmp 0x40c0e0
lea ecx, [ebp - 0x34]
call fcn.0040c650
cmp eax, 1
je 0x42c05e
cmp dword [esi + 8], 8
je 0x42c069
cmp dword [ebp - 0x5c], 5
je 0x42c0ea
lea esi, [ebp - 0x24]
call fcn.00408f40
fldz
lea eax, [ebp - 0x54]
fstp qword [ebp - 0x24]
mov dword [ebp - 0x1c], 3
call fcn.0040c670
test al, al
jne 0x42c127
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x64]
call fcn.0040c670
test al, al
jne 0x42c11c
mov ebx, dword [ebp + 8]
add ebx, 0x16c
lea eax, [ebp - 0x74]
call fcn.0040ceb0
mov eax, dword [ebp - 0x70]
inc eax
mov dword [edi], eax
lea ecx, [ebp - 0x44]
call fcn.00402250
lea esi, [ebp - 0x34]
call fcn.00408f40
lea esi, [ebp - 0x24]
call fcn.00408f40
lea esi, [ebp - 0x54]
call fcn.00408f40
lea esi, [ebp - 0x64]
call fcn.00408f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test dword [ebp - 0x10], 0x100
je 0x40bfeb
jmp 0x42be0a
ja 0x43c954
cmp dword [edi - 0x30c], 0
ja 0x43c9c0
cmp dword [edi - 0x2fc], 0
ja 0x43c9e7
lea esi, [edi - 0x2e4]
mov dword [ebp - 0xc], esi
call fcn.0041e8f4
mov dword [esi + 8], 1
mov dword [esi], 0
lea ebx, [edi - 0x14]
mov esi, ebx
call fcn.0041e8f4
mov esi, dword [ebp - 8]
mov dword [ebx + 8], 1
mov dword [ebx], 0
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, edi
cmp dword [eax - 0x498], 0
je 0x417773
mov dword [ebp - 8], 0
lea ecx, [eax - 0x49c]
lea eax, [ebp - 8]
call fcn.00422dc4
mov edx, dword [esi]
mov eax, dword [edx + 4]
lea edi, [eax + edi - 0x498]
call fcn.00423444
mov ecx, dword [esi]
mov eax, dword [ebp - 4]
add eax, dword [ecx + 4]
mov edi, dword [ebp - 4]
cmp dword [eax - 0x498], 0
jne 0x417740
call fcn.00424104
mov eax, dword [edi - 0x28]
test eax, eax
jne 0x43ca2d
mov esi, ebx
call fcn.0041e8f4
lea esi, [edi - 0x34]
call fcn.00426354
lea esi, [edi - 0x44]
call fcn.00426374
lea ecx, [edi - 0x64]
call fcn.00417c04
lea esi, [edi - 0x1a0]
call fcn.00416db4
lea esi, [edi - 0x1bc]
mov dword [esi], 0x48ab10
call fcn.00426394
mov ecx, dword [esi + 4]
push ecx
call fcn.00426b90
add esp, 4
lea ebx, [edi - 0x2c4]
call fcn.00416ca4
lea ecx, [edi - 0x2d4]
call fcn.00417c04
mov esi, dword [ebp - 0xc]
call fcn.0041e8f4
lea esi, [edi - 0x2f4]
mov dword [esi], 0x48ab10
call fcn.00426394
mov edx, dword [esi + 4]
push edx
call fcn.00426b90
invalid