Function at 0x483680
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fe24
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0xac], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xbc], ecx
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp - 0xbc]
add ecx, 0x78
call fcn.00418300
test eax, eax
ja 0x4836d6
xor eax, eax
jmp 0x483b77
mov ecx, dword [ebp + 0x10]
and ecx, 0xffff
movsx edx, cx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
shr eax, 0x10
and eax, 0xffff
movsx ecx, ax
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0xbc]
call fcn.00482080
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x483b75
lea ecx, [ebp - 0x2c]
call fcn.00438030
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xbc]
add ecx, 4
call fcn.00484ea0
lea ecx, [ebp - 0x2c]
call fcn.004dfdf0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041a580
push 1
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00484cf0
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00438070
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.0044fc20
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0xbc]
add ecx, 0x78
call fcn.004856e0
lea ecx, [ebp - 0x30]
call fcn.00438030
mov byte [ebp - 4], 2
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0xbc]
add ecx, 0x78
call fcn.00417ae0
push eax
lea ecx, [ebp - 0x28]
call fcn.0044ff40
movzx ecx, al
test ecx, ecx
je 0x483b5a
lea ecx, [ebp - 0x3c]
call fcn.00438030
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2c]
push edx
push 0x584338
lea eax, [ebp - 0x3c]
push eax
call fcn.004386c0
add esp, 0xc
call fcn.004039b0
mov dword [ebp - 0x48], eax
push 0x58437c
lea ecx, [ebp - 0x8c]
call fcn.00403970
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3c]
call fcn.004dfdf0
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x48383e
mov dword [ebp - 0xc8], 0
jmp 0x48389f
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x3fffffff
jle 0x483863
mov dword [ebp - 0xcc], 0
jmp 0x483893
mov eax, dword [ebp - 0x34]
shl eax, 1
call fcn.0053fdd0
mov dword [ebp - 0xd0], esp
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x34]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0xd0]
push edx
call fcn.00403260
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.00403970
mov byte [ebp - 4], 5
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0xa8]
push eax
call fcn.0056a700
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa8]
call fcn.00403230
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8c]
call fcn.00403230
push 0x48
call fcn.0053cf1e
add esp, 4
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0xb4], 0
je 0x483919
mov ecx, dword [ebp - 0xb4]
call fcn.00484a90
mov dword [ebp - 0xd4], eax
jmp 0x483923
mov dword [ebp - 0xd4], 0
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xb0], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0x44], edx
lea ecx, [ebp - 0x28]
call fcn.0041be30
add eax, 4
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 8
call fcn.004849c0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xbc]
mov dword [eax], ecx
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx + 0xd4]
mov ecx, dword [ebp - 0xbc]
mov ecx, dword [ecx + 0xd4]
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0xd8], ecx
cmp dword [ebp - 0xd8], 0
je 0x483a29
cmp dword [ebp - 0xd8], 1
je 0x4839a4
jmp 0x483a70
push 0
push 0x5f5694
push 0x5f56b0
push 0
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx + 0xd4]
push eax
call fcn.00541306
add esp, 0x14
mov dword [ebp - 0x50], eax
push 0
push 0x5fc368
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x50]
call fcn.004725b0
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x50]
call fcn.00471010
mov dword [ebp - 0x54], eax
push 0x5fc368
mov ecx, dword [ebp - 0x44]
add ecx, 4
call fcn.0041a580
push 0x584380
mov ecx, dword [ebp - 0x44]
add ecx, 4
call fcn.004565d0
mov ecx, dword [ebp - 0x54]
call fcn.00476080
mov ecx, eax
call fcn.00406410
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 4
call fcn.004565d0
jmp 0x483a70
push 0
push 0x5f59fc
push 0x5f56b0
push 0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 0xd4]
push ecx
call fcn.00541306
add esp, 0x14
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x5c]
call fcn.0047b1e0
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
add eax, 4
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 4
call fcn.0041a580
mov ecx, dword [ebp - 0x44]
add ecx, 4
call fcn.004dfdf0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x483b4e
mov ecx, dword [ebp - 0x44]
add ecx, 4
call fcn.004dfdf0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x60]
call fcn.0041a130
mov byte [ebp - 4], 7
push 1
lea ecx, [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0x60]
call fcn.00484cf0
mov dword [ebp - 0xdc], eax
mov edx, dword [ebp - 0xdc]
mov dword [ebp - 0xe0], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x60]
call fcn.00438070
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xb8]
call fcn.0044fc20
mov ecx, dword [ebp - 0xbc]
add ecx, 0x78
push ecx
lea edx, [ebp - 0x60]
push edx
call fcn.00484660
add esp, 8
push 1
mov ecx, dword [ebp - 0xbc]
add ecx, 4
call fcn.00477690
push 0
push 0
mov eax, dword [ebp - 0x44]
push eax
push 0x482540
push 0
push 0
call fcn.00499430
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [ebp - 0xbc]
add ecx, 0x98
call fcn.0044b5f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.0044fc20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.0044fc20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0044fc20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0044fc20
xor eax, eax
lea esp, [ebp - 0xe4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0xac]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret 0x10