Function at 0x458980
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a2be
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x4c]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xbc], eax
xor eax, eax
push 0xb
push str.imjpdct.exe
mov byte [ebp - 0xad], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
call fcn.00408740
cmp dword [esi + 0x14], 8
mov edi, dword [esi + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
jb 0x458a15
mov esi, dword [esi]
cmp edi, 8
jae 0x458a2a
movups xmm0, xmmword [esi]
mov dword [ebp - 0x20], 7
movups xmmword [ebp - 0x34], xmm0
jmp 0x458aa9
mov eax, edi
mov ecx, 0x7ffffffe
or eax, 7
cmp eax, ecx
cmova eax, ecx
mov dword [ebp - 0x14], eax
inc eax
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x458a4c
or ecx, 0xffffffff
jmp 0x458a54
cmp ecx, 0x1000
jb 0x458a7b
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.00406909
add esp, 4
test eax, eax
je 0x458e59
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x458a8e
test ecx, ecx
je 0x458a8c
push ecx
call fcn.00406909
add esp, 4
mov ecx, eax
jmp 0x458a8e
xor ecx, ecx
lea eax, [edi*2 + 2]
mov dword [ebp - 0x34], ecx
push eax
push esi
push ecx
call fcn.005285f0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edi
push 1
push 0x56999c
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.0040cd80
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
push dword [ebp - 0x3c]
cmovae eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x34]
push eax
call fcn.0040cd80
lea eax, [ebp - 0x34]
push eax
push eax
call fcn.004264a0
add esp, 8
test al, al
je 0x458dec
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x458dec
xor eax, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
mov edi, dword [ebp - 0xb8]
lea eax, [ebp - 0x64]
push eax
push edi
mov byte [ebp - 4], 2
call fcn.004264a0
add esp, 8
test al, al
je 0x458de4
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.00456680
add esp, 8
test al, al
jne 0x458b61
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00456680
add esp, 8
test al, al
je 0x458de4
push 0x30
lea eax, [ebp - 0xac]
push 0
push eax
call fcn.005290f0
add esp, 0xc
lea ecx, [ebp - 0xac]
push 0
call fcn.004085b0
push dword [ebp - 0xb4]
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 3
call fcn.00408890
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xac]
call fcn.0040b1f0
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xb4], eax
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
test esi, esi
je 0x458c34
mov edi, dword [ebp - 0x18]
cmp esi, edi
je 0x458be4
mov ecx, esi
call fcn.00408e50
add esi, 0x18
cmp esi, edi
jne 0x458bd3
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x458c1e
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458e5e
push ecx
push esi
call fcn.004097e6
mov edi, dword [ebp - 0xb8]
add esp, 8
mov eax, dword [ebp - 0xb4]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xac]
test eax, eax
jne 0x458ddf
lea eax, [ebp - 0xd4]
push eax
call fcn.00417420
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.00409a20
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 7
call fcn.00409b10
lea eax, [ebp - 0x7c]
push edi
push eax
call fcn.00456680
add esp, 8
test al, al
jne 0x458c97
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00456680
add esp, 8
test al, al
je 0x458dd1
mov eax, dword [ebp - 0x84]
cmp eax, 1
ja 0x458dd1
test eax, eax
je 0x458dac
lea eax, [ebp - 0x88]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x18]
movq qword [ebp - 0x18], xmm0
call fcn.0049e1c0
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 8
mov esi, dword [edi]
cmp esi, edi
je 0x458d74
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
jb 0x458ce2
mov eax, dword [esi + 0x10]
push 0x575894
push eax
call fcn.005353f9
add esp, 8
test eax, eax
je 0x458d16
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
jb 0x458d00
mov eax, dword [esi + 0x10]
push 0x575898
push eax
call fcn.005353f9
add esp, 8
test eax, eax
jne 0x458e1d
cmp dword [esi + 0x38], 0
jne 0x458e1d
cmp byte [esi + 0xd], 0
jne 0x458d69
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x458d4e
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x458d69
nop dword [eax]
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x458d40
jmp 0x458d69
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x458d67
cmp esi, dword [eax + 8]
jne 0x458d67
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x458d57
mov esi, eax
mov edi, dword [ebp - 0x18]
cmp esi, edi
jne 0x458cd6
push dword [edi + 4]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call fcn.0044fc60
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], edi
mov eax, dword [ebp - 0x18]
mov dword [eax], edi
mov eax, dword [ebp - 0x18]
mov dword [eax + 8], edi
mov dword [ebp - 0x14], 0
push 0x40
push dword [ebp - 0x18]
call fcn.004097e6
add esp, 8
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0xbc]
lea eax, [ebp - 0x34]
cmp ecx, eax
je 0x458dca
cmp dword [ebp - 0x20], 8
push dword [ebp - 0x24]
cmovae eax, dword [ebp - 0x34]
push eax
call fcn.00408740
mov byte [ebp - 0xad], 1
lea ecx, [ebp - 0x7c]
call fcn.00408e50
lea ecx, [ebp - 0xac]
call fcn.0044fbd0
lea ecx, [ebp - 0x64]
call fcn.00408e50
lea ecx, [ebp - 0x34]
call fcn.00408e50
lea ecx, [ebp - 0x4c]
call fcn.00408e50
mov al, byte [ebp - 0xad]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
push dword [esi + 4]
call fcn.0044fc60
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x18]
mov dword [eax], esi
mov eax, dword [ebp - 0x18]
mov dword [eax + 8], esi
mov dword [ebp - 0x14], 0
push 0x40
push dword [ebp - 0x18]
call fcn.004097e6
add esp, 8
jmp 0x458dd1
call fcn.0052cae1
call fcn.0052cae1
int3