Function at 0x481280
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52438e
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x7c]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xb4], eax
xor eax, eax
push 0xb
push str.imjpdct.exe
mov byte [ebp - 0xad], 0
mov dword [ebp - 0x68], 7
mov dword [ebp - 0x6c], 0
mov word [ebp - 0x7c], ax
call fcn.00407750
xor eax, eax
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00407d00
push 1
push 0x52da1c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040ef80
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040af40
lea eax, [ebp - 0x28]
push eax
push eax
call fcn.00420960
add esp, 8
test al, al
je 0x481600
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x481600
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
push edi
call fcn.00420960
add esp, 8
test al, al
je 0x4815df
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.00445c30
add esp, 8
test al, al
jne 0x4813b9
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00445c30
add esp, 8
test al, al
je 0x4815df
push 0x30
lea eax, [ebp - 0xac]
push 0
push eax
call fcn.004f9050
add esp, 0xc
lea ecx, [ebp - 0xac]
push 0
call fcn.00407610
push ebx
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 3
call fcn.004079b0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xac]
call fcn.00409b70
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 eax, dword [ebp - 0x4c]
setne bl
test eax, eax
je 0x481439
push dword [ebp - 0xb4]
lea ecx, [ebp - 0xae]
push ecx
push dword [ebp - 0x48]
push eax
call fcn.00408580
push dword [ebp - 0x4c]
call fcn.004085be
add esp, 0x14
lea ecx, [ebp - 0xac]
test bl, bl
jne 0x4815d6
lea eax, [ebp - 0xd0]
push eax
call fcn.00414690
xor ecx, ecx
mov byte [ebp - 4], 4
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x64], cx
lea ecx, [ebp - 0x64]
push eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
call fcn.00407d00
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 6
call fcn.004087d0
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.00445c30
add esp, 8
test al, al
jne 0x4814af
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00445c30
add esp, 8
test al, al
je 0x4815af
mov eax, dword [ebp - 0x84]
cmp eax, 1
ja 0x4815af
test eax, eax
je 0x48158f
lea eax, [ebp - 0xae]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x88]
movq qword [ebp - 0x48], xmm0
push eax
lea ecx, [ebp - 0x48]
call fcn.004700c0
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 7
mov eax, dword [ecx]
mov dword [ebp - 0xb8], eax
cmp eax, ecx
je 0x48156e
cmp dword [eax + 0x24], 0x10
lea esi, [eax + 0x10]
jb 0x481504
mov eax, dword [esi]
jmp 0x481506
mov eax, esi
push 0x535c34
push eax
call fcn.004f9d5f
add esp, 8
test eax, eax
je 0x48153a
cmp dword [esi + 0x14], 0x10
jb 0x481522
mov eax, dword [esi]
jmp 0x481524
mov eax, esi
push 0x535c38
push eax
call fcn.004f9d5f
add esp, 8
test eax, eax
jne 0x481654
push 0
push 0x52d9b8
push dword [esi + 0x28]
lea ecx, [esi + 0x18]
push 0
call fcn.004089f0
test eax, eax
jne 0x481654
lea ecx, [ebp - 0xb8]
call fcn.00454740
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0x48]
cmp eax, ecx
jne 0x4814f7
push ecx
push dword [ecx]
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x48]
call fcn.004403c0
push dword [ebp - 0x48]
call fcn.004085be
add esp, 4
mov eax, dword [ebp - 0xb4]
lea ecx, [ebp - 0x28]
cmp eax, ecx
je 0x4815a8
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00407d00
mov byte [ebp - 0xad], 1
cmp dword [ebp - 0x50], 8
jb 0x4815c0
push dword [ebp - 0x64]
call fcn.004085be
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], 7
lea ecx, [ebp - 0xac]
mov word [ebp - 0x64], ax
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 2
call fcn.00440330
cmp dword [ebp - 0x2c], 8
jb 0x4815f0
push dword [ebp - 0x40]
call fcn.004085be
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
cmp dword [ebp - 0x14], 8
jb 0x481611
push dword [ebp - 0x28]
call fcn.004085be
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x68], 8
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
jb 0x481632
push dword [ebp - 0x7c]
call fcn.004085be
add esp, 4
mov al, byte [ebp - 0xad]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x48]
push eax
mov byte [ebp - 4], 6
push dword [eax]
lea eax, [ebp - 0xb4]
push eax
call fcn.004403c0
push dword [ebp - 0x48]
call fcn.004085be
add esp, 4
jmp 0x4815af