Function at 0x490790
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4c958a
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4f3280]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f3280]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xb4]
mov esi, edx
push esi
mov edi, ecx
mov dword [esp + 0x48], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4908d4
mov eax, edi
call fcn.00490b70
test eax, eax
jl 0x4908d4
push esi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x34], 0x80004005
call fcn.004093c0
lea ecx, [esp + 0x48]
push ecx
xor ebp, ebp
lea ecx, [esp + 0x84]
mov dword [esp + 0xb0], ebp
call fcn.0048beb0
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x68]
mov byte [esp + 0xb0], 1
call fcn.0048b780
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x80]
mov byte [esp + 0xac], 3
call fcn.00403570
push eax
lea ecx, [esp + 0x38]
call fcn.0041fd60
mov byte [esp + 0xac], 4
mov edx, dword [edi + 0xc]
mov edi, dword [eax]
mov esi, dword [edx]
lea ecx, [esp + 0x18]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x24]
push edx
call ecx
lea ecx, [esp + 0x34]
mov esi, eax
call fcn.0041fd30
cmp esi, ebp
jge 0x4908de
mov byte [esp + 0xac], 2
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x4908b6
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x64]
call fcn.00406930
lea ecx, [esp + 0x80]
call fcn.00406930
lea ecx, [esp + 0x48]
call fcn.00406930
mov eax, 0x80004005
jmp 0x490b3b
mov dword [esp + 0x28], ebp
mov byte [esp + 0xac], 5
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x64]
call fcn.00403570
push eax
lea ecx, [esp + 0x20]
call fcn.004092a0
lea ecx, [esp + 0x28]
mov byte [esp + 0xac], 6
mov esi, dword [edi]
push ecx
mov ecx, eax
add esi, 0x30
call fcn.0042cd20
mov edx, dword [esi]
push eax
push edi
call edx
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00401000
cmp esi, ebp
jge 0x490968
mov byte [esp + 0xac], 3
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x490947
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0xac], 2
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x4908b6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4908b6
mov dword [esp + 0x24], ebp
mov byte [esp + 0xac], 7
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x58]
call eax
cmp eax, ebp
jge 0x4909a3
mov byte [esp + 0xac], 5
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x49092f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x49092f
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], ebp
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp eax, ebp
jl 0x490989
cmp dword [esp + 0x2c], ebp
jle 0x490ad1
mov dword [esp + 0x20], 0
mov ecx, ebp
mov word [esp + 0x34], 3
mov dword [esp + 0x3c], ecx
mov byte [esp + 0xac], 9
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
mov esi, dword [edx]
lea eax, [esp + 0x20]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x4c]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esi + 0x28]
mov dword [eax + 0xc], ecx
call edx
test eax, eax
lea ecx, [esp + 0x34]
setl bl
call fcn.0041fd30
test bl, bl
jne 0x490ab9
lea ecx, [esp + 0x1c]
call fcn.0042dcc0
mov byte [esp + 0xac], 0xa
mov eax, dword [esp + 0x20]
mov esi, dword [eax]
lea ecx, [esp + 0x1c]
mov edi, eax
add esi, 0x24
call fcn.004020f0
push eax
mov eax, dword [esi]
push edi
call eax
test eax, eax
jl 0x490ab0
mov ecx, dword [esp + 0x44]
push ecx
lea ecx, [esp + 0x20]
call fcn.0042cd20
push eax
call fcn.004a3704
add esp, 8
test eax, eax
je 0x490aa0
lea ecx, [esp + 0x1c]
call fcn.00401000
mov byte [esp + 0xac], 7
mov eax, dword [esp + 0x20]
test eax, eax
je 0x490a91
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
add ebp, 1
cmp ebp, dword [esp + 0x2c]
jl 0x4909c6
jmp 0x490ad1
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push eax
call edx
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x1c]
call fcn.00401000
mov byte [esp + 0xac], 7
mov eax, dword [esp + 0x20]
test eax, eax
je 0x490ad1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0xac], 5
mov eax, dword [esp + 0x24]
test eax, eax
je 0x490ae9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0xac], 3
mov eax, dword [esp + 0x28]
test eax, eax
je 0x490b01
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0xac], 2
mov eax, dword [esp + 0x18]
test eax, eax
je 0x490b19
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x64]
call fcn.00406930
lea ecx, [esp + 0x80]
call fcn.00406930
lea ecx, [esp + 0x48]
call fcn.00406930
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004a1873
add esp, 0x9c
ret 4