Function at 0x46a0e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x60], eax
push 0xb
mov dword [ebp - 0x64], ecx
xor ebx, ebx
xor eax, eax
mov edi, 7
push str.imjpuex.exe
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x68], edx
mov byte [ebp - 0x59], bl
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], ax
call fcn.00406300
push 0xffffffffffffffff
xor ecx, ecx
push ebx
mov word [ebp - 0x20], cx
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
call fcn.00406960
push 1
push 0x5104d4
lea ecx, [ebp - 0x20]
call fcn.0040e560
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x20]
call fcn.0040e6b0
lea eax, [ebp - 0x20]
push eax
mov ecx, eax
push ecx
call fcn.00417a40
add esp, 8
lea esi, [ebx + 8]
test al, al
jne 0x46a1a8
cmp dword [ebp - 0xc], esi
jb 0x46a18a
mov edx, dword [ebp - 0x20]
push edx
call fcn.00406ec9
add esp, 4
xor eax, eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], ax
cmp dword [ebp - 0x44], esi
jb 0x46a358
mov ecx, dword [ebp - 0x58]
push ecx
jmp 0x46a350
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], esi
jae 0x46a1b3
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46a1ed
cmp dword [ebp - 0xc], esi
jb 0x46a1cf
mov edx, dword [ebp - 0x20]
push edx
call fcn.00406ec9
add esp, 4
xor eax, eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], ax
cmp dword [ebp - 0x44], esi
jb 0x46a358
mov ecx, dword [ebp - 0x58]
push ecx
jmp 0x46a350
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x3c]
push eax
xor edx, edx
push ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], dx
call fcn.00417a40
add esp, 8
test al, al
jne 0x46a259
cmp dword [ebp - 0x28], esi
jb 0x46a21e
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406ec9
add esp, 4
xor eax, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], ax
cmp dword [ebp - 0xc], esi
jb 0x46a23b
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406ec9
add esp, 4
xor edx, edx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], dx
cmp dword [ebp - 0x44], esi
jb 0x46a358
mov eax, dword [ebp - 0x58]
push eax
jmp 0x46a350
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x20]
push ecx
push edx
call fcn.0043dfb0
add esp, 8
test al, al
jne 0x46a2cd
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0043dfb0
add esp, 8
test al, al
jne 0x46a2cd
cmp dword [ebp - 0x28], esi
jb 0x46a292
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406ec9
add esp, 4
xor eax, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], ax
cmp dword [ebp - 0xc], esi
jb 0x46a2af
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406ec9
add esp, 4
xor edx, edx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], dx
cmp dword [ebp - 0x44], esi
jb 0x46a358
mov eax, dword [ebp - 0x58]
push eax
jmp 0x46a350
mov eax, dword [ebp - 0x64]
cmp dword [eax + 0x10], ebx
je 0x46a2fa
mov ecx, dword [ebp - 0x60]
push ecx
push eax
call fcn.0043dfb0
add esp, 8
test al, al
jne 0x46a2fa
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x58]
push edx
push eax
call fcn.0043dfb0
add esp, 8
test al, al
je 0x46a30d
mov ecx, dword [ebp - 0x68]
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x20]
push eax
call fcn.00406960
mov byte [ebp - 0x59], 1
cmp dword [ebp - 0x28], esi
jb 0x46a31e
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406ec9
add esp, 4
xor edx, edx
mov word [ebp - 0x3c], dx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0xc], esi
jb 0x46a33b
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406ec9
add esp, 4
xor ecx, ecx
mov word [ebp - 0x20], cx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edi
cmp dword [ebp - 0x44], esi
jb 0x46a358
mov edx, dword [ebp - 0x58]
push edx
call fcn.00406ec9
add esp, 4
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x59]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret