Function at 0x45f0c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, ecx
cmp byte [ebx + 0x3f4], 0
je 0x45f119
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
test edx, edx
je 0x45f35c
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x45f35c
mov dword [ebx + 0x3d8], ecx
cmp ecx, 0xffffffff
je 0x45f119
mov eax, 0x5a4d
mov dword [ebx + 8], edx
cmp word [edx], ax
je 0x45f122
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 0x45f347
lea eax, [esi + 0xf8]
cmp eax, ecx
ja 0x45f347
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 0x45f190
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 0x45f1b0
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 0x45f1c6
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.00514b20
movzx eax, word [ebx + 0x5a]
xor ecx, ecx
add esp, 0xc
cmp cx, ax
jae 0x45f27e
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 0x45f230
test dl, dl
je 0x45f22c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x45f230
add ecx, 2
add eax, 2
test dl, dl
jne 0x45f210
xor eax, eax
jmp 0x45f235
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45f272
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 0x45f200
movzx eax, word [ebx + 0x5a]
xor ecx, ecx
mov dword [ebx + 0x3d4], 0
mov dword [ebp + 8], 0
cmp cx, ax
jae 0x45f317
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 0x45f2e0
test dl, dl
je 0x45f2dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45f2e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x45f2c0
xor eax, eax
jmp 0x45f2e5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45f303
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 0x45f2a3
push 0xc
call fcn.00484911
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