Function at 0x41aa50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430730
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x43c0d8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x188], edi
lea eax, [edi + 0xc]
mov dword [ebp - 0x180], edi
push eax
call fcn.004202a0
mov ecx, edi
call fcn.0041b200
test al, al
jne 0x41aab6
push str.PE::_LoadFile
push 0x71
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x41b1cc
cmp byte [edi + 0x39d], 0
jne 0x41aaf2
lea eax, [edi + 0x24]
push eax
push dword [edi + 0x398]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
cmp byte [edi + 4], 0
mov eax, dword [edi + 0x48]
mov dword [edi + 0x58], eax
jne 0x41aaf2
cmp byte [edi + 0x3f4], 0
jne 0x41aaeb
mov ecx, edi
call fcn.004180e0
mov al, 1
jmp 0x41b1d5
push 0
push 2
push 0
lea eax, [edi + 0x5c]
mov ecx, edi
push 0x40
push eax
call fcn.00419c90
test al, al
jne 0x41ab39
push 0
push 0
push 0
push dword [edi + 0x398]
mov dword [edi + 0x3e8], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push str.PE::_LoadFile
push 0x8c
push 0x80006
jmp 0x41b1cc
movzx eax, word [edi + 0x5c]
mov ecx, 0x5a4d
cmp cx, ax
je 0x41ab51
mov ecx, 0x4d5a
cmp cx, ax
jne 0x41ab5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41ab6f
push str.PE::_LoadFile
push 0x92
push 0x80003
jmp 0x41b1cc
cmp byte [edi + 0x39d], 0
jne 0x41ab8e
push 1
push 0
push 0
push dword [edi + 0x398]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, eax
jmp 0x41ab93
mov ecx, 0x40
mov eax, dword [edi + 0x98]
cmp eax, 0x40
jb 0x41b1bd
cmp eax, 0x400
jg 0x41b1bd
sub eax, ecx
lea ecx, [edi + 0x348]
push eax
mov dword [ebp - 0x178], eax
call fcn.00420230
push 0
push 2
push 0
push dword [ebp - 0x178]
mov ecx, edi
push dword [edi + 0x348]
call fcn.00419c90
test al, al
jne 0x41abf2
push str.PE::_LoadFile
push 0xa7
push 0x80006
jmp 0x41b1cc
push 0xf8
lea eax, [ebp - 0x174]
push 0
push eax
call fcn.00424230
add esp, 0xc
lea eax, [ebp - 0x174]
mov ecx, edi
push 0
push 2
push 0
push 0x14
push eax
call fcn.00419c90
test al, al
jne 0x41ac36
push str.PE::_LoadFile
push 0xac
push 0x80006
jmp 0x41b1cc
mov ecx, dword [ebp - 0x170]
mov edx, 0x14c
and ecx, 0x14c
cmp cx, dx
mov ecx, edi
push 1
sete al
mov byte [edi + 0x3bc], al
mov eax, dword [edi + 0x98]
push 1
push eax
jne 0x41adc1
push 0xf8
lea esi, [edi + 0x9c]
mov dword [edi + 0x3c0], 4
push esi
call fcn.00419c90
test al, al
jne 0x41ac99
push str.PE::_LoadFile
push 0xb4
push 0x80006
jmp 0x41b1cc
cmp dword [esi], 0x4550
je 0x41acb5
push str.PE::_LoadFile
push 0xb8
push 0x80003
jmp 0x41b1cc
movzx eax, word [edi + 0xa2]
mov dword [ebp - 0x184], eax
cmp eax, 0x60
jbe 0x41ae33
mov eax, 0x60
mov word [edi + 0xa2], ax
mov dword [ebp - 0x184], eax
xor esi, esi
mov byte [ebp - 0x20], 0
mov dword [ebp - 0x178], esi
xorps xmm0, xmm0
movq qword [ebp - 0x1f], xmm0
test eax, eax
je 0x41aef9
nop dword [eax]
push 0
push 2
push 0
push 0x28
lea eax, [ebp - 0x7c]
mov ecx, edi
push eax
call fcn.00419c90
test al, al
je 0x41af5b
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], ecx
nop dword [eax]
cmp byte [ebp + eax - 0x20], 0x20
jge 0x41ad45
cmp eax, 9
jae 0x41b1f1
mov byte [ebp + eax - 0x20], 0
inc eax
cmp eax, 9
jb 0x41ad30
push 0x33
lea eax, [ebp - 0x53]
push 0
push eax
call fcn.00424230
movups xmm0, xmmword [ebp - 0x7c]
push 8
lea eax, [ebp - 0x20]
movups xmmword [ebp - 0x54], xmm0
push eax
movups xmm0, xmmword [ebp - 0x6c]
lea eax, [ebp - 0x2c]
push 9
movups xmmword [ebp - 0x44], xmm0
push eax
movq xmm0, qword [ebp - 0x5c]
movq qword [ebp - 0x34], xmm0
call fcn.004265d0
mov edx, dword [edi + 0x358]
lea ecx, [edi + 0x354]
add esp, 0x1c
cmp edx, dword [ecx + 8]
je 0x41ae4a
movups xmm0, xmmword [ebp - 0x54]
movups xmmword [edx], xmm0
movups xmm0, xmmword [ebp - 0x44]
movups xmmword [edx + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x34]
movups xmmword [edx + 0x20], xmm0
mov eax, dword [ebp - 0x24]
mov dword [edx + 0x30], eax
add dword [ecx + 4], 0x34
jmp 0x41ae5a
push pe_nt_image_headers32
lea esi, [edi + 0x194]
mov dword [edi + 0x3c0], 8
push esi
call fcn.00419c90
test al, al
jne 0x41adf4
push str.PE::_LoadFile
push 0xc7
push 0x80006
jmp 0x41b1cc
cmp dword [esi], 0x4550
je 0x41ae10
push str.PE::_LoadFile
push 0xcc
push 0x80003
jmp 0x41b1cc
movzx eax, word [edi + 0x19a]
mov dword [ebp - 0x184], eax
cmp eax, 0x60
jbe 0x41ae33
mov eax, 0x60
mov word [edi + 0x19a], ax
jmp 0x41acd7
test eax, eax
jne 0x41acdd
push str.PE::_LoadFile
push 0xd8
jmp 0x41b1c7
lea eax, [ebp - 0x54]
push eax
push edx
call fcn.00411970
lea ecx, [edi + 0x354]
mov eax, dword [ebp - 0x44]
xor edx, edx
test eax, eax
je 0x41ae88
mov edx, dword [edi + 0x58]
cmp eax, edx
cmovbe edx, eax
mov eax, dword [ebp - 0x40]
cmp byte [edi + 0x39d], 0
je 0x41aed9
cmp byte [edi + 0x3bc], 0
je 0x41aeae
mov ecx, dword [edi + 0xd4]
jmp 0x41aeb4
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
je 0x41ae6b
nop
mov ecx, dword [eax + 0x14]
cmp ecx, dword [ebp - 0x40]
ja 0x41aea5
add eax, 0x34
cmp eax, dword [edi + 0x358]
jne 0x41ae90
jmp 0x41ae6b
mov eax, dword [ebp - 0x40]
mov edx, ecx
sub edx, eax
jmp 0x41ae6e
mov ecx, dword [edi + 0x1cc]
lea eax, [ecx - 1]
add eax, edx
xor edx, edx
mov dword [ebp - 0x17c], eax
div ecx
mov ecx, dword [ebp - 0x17c]
mov eax, dword [ebp - 0x48]
sub ecx, edx
add eax, ecx
cmp eax, esi
cmovbe eax, esi
mov esi, eax
jmp 0x41aee0
add eax, edx
cmp eax, esi
cmova esi, eax
mov eax, dword [ebp - 0x178]
inc eax
mov dword [ebp - 0x178], eax
cmp eax, dword [ebp - 0x184]
jb 0x41ad00
cmp byte [edi + 0x3f4], 0
jne 0x41af09
mov ecx, edi
call fcn.004180e0
cmp byte [edi + 0x3bc], 0
je 0x41b082
lea ecx, [edi + 0x114]
lea eax, [ecx + 0x80]
mov edx, ecx
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x17c], eax
cmp ecx, eax
je 0x41af9c
cmp byte [edi + 0x39d], 0
je 0x41af70
mov edi, eax
nop
mov eax, dword [edx + 4]
add eax, dword [edx]
cmp eax, esi
cmovbe eax, esi
add edx, 8
mov esi, eax
cmp edx, edi
jne 0x41af40
mov edi, dword [ebp - 0x188]
jmp 0x41af9c
push str.PE::_LoadFile
push 0xe4
push 0x80006
jmp 0x41b1cc
push 0
push dword [edx]
mov ecx, edi
call fcn.00419b30
mov edx, dword [ebp - 0x178]
add eax, dword [edx + 4]
cmp eax, esi
cmovbe eax, esi
add edx, 8
mov esi, eax
mov dword [ebp - 0x178], edx
cmp edx, dword [ebp - 0x17c]
jne 0x41af70
cmp dword [edi + 0x11c], 0
mov dword [ebp - 4], 0
je 0x41afc3
push 0
mov ecx, edi
call fcn.00418b10
test al, al
jne 0x41afc3
cmp dword [edi + 8], 4
jne 0x41b1d3
cmp dword [edi + 0x114], 0
mov dword [ebp - 4], 2
je 0x41afea
push 0
mov ecx, edi
call fcn.004184d0
test al, al
jne 0x41afea
cmp dword [edi + 8], 4
jne 0x41b1d3
cmp dword [edi + 0x13c], 0
mov dword [ebp - 4], 4
je 0x41b00f
mov ecx, edi
call fcn.00419600
test al, al
jne 0x41b00f
cmp dword [edi + 8], 4
jne 0x41b1d3
cmp dword [edi + 0x58], esi
seta al
mov byte [edi + 0x3f7], al
mov al, 1
jmp 0x41b1d5
lea ecx, [edi + 0x21c]
lea eax, [ecx + 0x80]
mov edx, ecx
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x17c], eax
cmp ecx, eax
je 0x41b0fc
cmp byte [edi + 0x39d], 0
je 0x41b0d0
mov edi, eax
nop dword [eax + eax]
mov eax, dword [edx + 4]
add eax, dword [edx]
cmp eax, esi
cmovbe eax, esi
add edx, 8
mov esi, eax
cmp edx, edi
jne 0x41b0b0
mov edi, dword [ebp - 0x188]
jmp 0x41b0fc
push 0
push dword [edx]
mov ecx, edi
call fcn.00419b30
mov edx, dword [ebp - 0x178]
add eax, dword [edx + 4]
cmp eax, esi
cmovbe eax, esi
add edx, 8
mov esi, eax
mov dword [ebp - 0x178], edx
cmp edx, dword [ebp - 0x17c]
jne 0x41b0d0
cmp dword [edi + 0x224], 0
mov dword [ebp - 4], 9
je 0x41b123
push 0
mov ecx, edi
call fcn.00418b10
test al, al
jne 0x41b123
cmp dword [edi + 8], 4
jne 0x41b1d3
cmp dword [edi + 0x21c], 0
mov dword [ebp - 4], 0xb
je 0x41b14a
push 0
mov ecx, edi
call fcn.004184d0
test al, al
jne 0x41b14a
cmp dword [edi + 8], 4
jne 0x41b1d3
cmp dword [edi + 0x244], 0
mov dword [ebp - 4], 0xd
jmp 0x41aff8
push str.PE::_LoadFile
push 0x9e
push 0x8000c
mov ecx, edi
call fcn.0041b4b0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042264a
mov esp, ebp
pop ebp
ret
call fcn.00422b9d
int3