Function at 0x459f20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, ecx
cmp byte [ebx + 0x3f4], 0
je 0x459f79
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
test edx, edx
je 0x45a1bc
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x45a1bc
mov dword [ebx + 0x3d8], ecx
cmp ecx, 0xffffffff
je 0x459f79
mov eax, 0x5a4d
mov dword [ebx + 8], edx
cmp word [edx], ax
je 0x459f82
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
mov esi, dword [edx + 0x3c]
mov dword [ebp + 8], esi
mov dword [ebx + 0x3cc], esi
cmp esi, ecx
ja 0x45a1a7
lea eax, [esi + 0xf8]
cmp eax, ecx
ja 0x45a1a7
movups xmm0, xmmword [edx]
push edi
add esi, edx
lea edi, [ebx + 0x54]
movups xmmword [ebx + 0x14], xmm0
mov ecx, 0x3e
movups xmm0, xmmword [edx + 0x10]
movups xmmword [ebx + 0x24], xmm0
movups xmm0, xmmword [edx + 0x20]
movups xmmword [ebx + 0x34], xmm0
movups xmm0, xmmword [edx + 0x30]
movups xmmword [ebx + 0x44], xmm0
rep movsd dword es:[edi], dword [esi]
cmp dword [ebx + 0x54], 0x4550
je 0x459ff0
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx eax, word [ebx + 0x68]
test ax, ax
je 0x45a010
mov ecx, dword [ebp + 8]
add ecx, 0x18
add ecx, eax
movzx eax, word [ebx + 0x5a]
mov dword [ebx + 0x3d0], ecx
cmp eax, 0x10
jbe 0x45a026
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [eax + eax*4]
shl eax, 3
push eax
lea eax, [ecx + edx]
push eax
lea eax, [ebx + 0x14c]
push eax
call fcn.0050ad80
movzx eax, word [ebx + 0x5a]
xor ecx, ecx
add esp, 0xc
cmp cx, ax
jae 0x45a0de
lea esi, [ebx + 0x160]
mov edi, eax
nop word [eax + eax]
lea eax, [ebx + 0x3f4]
lea ecx, [esi - 0x14]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x45a090
test dl, dl
je 0x45a08c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x45a090
add ecx, 2
add eax, 2
test dl, dl
jne 0x45a070
xor eax, eax
jmp 0x45a095
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45a0d2
mov edx, dword [esi]
add edx, dword [ebx + 8]
movups xmm1, xmmword [edx]
movq xmm0, qword [edx + 0x10]
movq qword [ebp - 0x14], xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
movd ecx, xmm0
movd eax, xmm1
movups xmmword [ebp - 0x24], xmm1
test ecx, ecx
cmove ecx, eax
mov eax, dword [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 8], eax
lea eax, [edx + ecx]
mov dword [ebp - 4], eax
add esi, 0x28
sub edi, 1
jne 0x45a060
movzx eax, word [ebx + 0x5a]
xor ecx, ecx
mov dword [ebx + 0x3d4], 0
mov dword [ebp + 8], 0
cmp cx, ax
jae 0x45a177
movzx esi, ax
lea edi, [ebx + 0x15c]
mov eax, dword [edi + 4]
add eax, dword [edi]
cmp eax, ecx
cmova ecx, eax
lea eax, [edi - 0x10]
mov dword [ebp + 0xc], ecx
mov dword [ebx + 0x3d4], ecx
lea ecx, [ebx + 0x3f4]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45a140
test dl, dl
je 0x45a13c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45a140
add eax, 2
add ecx, 2
test dl, dl
jne 0x45a120
xor eax, eax
jmp 0x45a145
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45a163
add esi, 0xffff
mov dword [ebx + 0xac], eax
mov word [ebx + 0x5a], si
mov dword [ebx + 0x3f0], 1
mov edx, dword [ebp + 8]
add edi, 0x28
mov ecx, dword [ebp + 0xc]
inc edx
movzx eax, si
mov dword [ebp + 8], edx
cmp edx, eax
jb 0x45a103
push 0xc
call fcn.004c2355
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [ebp + 8], eax
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
pop edi
mov dword [eax + 4], ecx
mov dword [eax + 8], 0
mov dword [ebx + 4], eax
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8