Function at 0x479c60
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4ca542
mov eax, dword fs:[0]
push eax
mov eax, 0x12f0
call fcn.00491300
mov eax, dword [0x50b384]
xor eax, esp
mov dword [esp + 0x12ec], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50b384]
xor eax, esp
push eax
lea eax, [esp + 0x1304]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1314]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x479f43
mov ebp, 8
cmp dword [esi + 0x18], ebp
jb 0x479cc7
mov eax, dword [esi + 4]
lea edi, [esi + 4]
mov dword [esp + 0x14], edi
jmp 0x479cd0
lea eax, [esi + 4]
mov dword [esp + 0x14], eax
mov edi, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x479cfa
cmp dword [esi + 0x18], ebp
jb 0x479ce4
mov eax, dword [edi]
jmp 0x479ce6
mov eax, edi
push 3
push eax
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
jne 0x479d22
mov al, 1
jmp 0x479f45
cmp dword [esi + 0x18], ebp
jb 0x479d03
mov eax, dword [edi]
jmp 0x479d05
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x479f43
push str.file:__
push 0
mov ecx, esi
call fcn.0042f000
xor eax, eax
push 0x1046
push eax
lea ecx, [esp + 0x2c2]
push ecx
mov word [esp + 0x2c4], ax
call fcn.0048f0d0
add esp, 0xc
mov dword [esp + 0x1c], 0x824
cmp dword [esi + 0x18], ebp
jb 0x479d53
mov eax, dword [edi]
jmp 0x479d55
mov eax, edi
push 0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x2c0]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
jne 0x479f43
cmp dword [esp + 0x1c], eax
jbe 0x479f43
push str.file:__
mov ecx, esi
call fcn.004029ff
lea edx, [esp + 0x2b8]
push edx
mov ecx, esi
call fcn.00402a04
mov eax, dword [esi + 0x14]
lea eax, [eax + eax*2]
xor ecx, ecx
mov dword [esp + 0x20], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048e1ac
mov ebx, eax
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x24]
lea ecx, [eax + eax]
push ecx
push 0
push ebx
mov dword [esp + 0x131c], 0
call fcn.0048f0d0
add esp, 0x10
cmp dword [esi + 0x18], ebp
jb 0x479de3
mov edi, dword [edi]
push 0x20001000
lea edx, [esp + 0x24]
push edx
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_UrlCanonicalizeW]
push ebx
test eax, eax
jne 0x479f3b
mov ecx, esi
call fcn.004029ff
lea eax, [esp + 0x2b8]
push eax
lea ecx, [esp + 0x68]
call fcn.00401f43
lea ecx, [esp + 0x64]
push 0
push ecx
mov byte [esp + 0x1314], 1
call fcn.00453470
add esp, 8
test al, al
je 0x479f31
cmp dword [esp + 0x78], 0
jbe 0x479f31
xor edx, edx
push 0x1fe
push edx
lea eax, [esp + 0xc2]
push eax
mov word [esp + 0xc4], dx
call fcn.0048f0d0
mov eax, dword [esp + 0x74]
add esp, 0xc
cmp dword [esp + 0x7c], ebp
jae 0x479e6e
lea eax, [esp + 0x68]
push 0x100
lea ecx, [esp + 0xbc]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.004954fe
add esp, 0x24
test eax, eax
jne 0x479f31
lea edx, [esp + 0xb8]
push edx
lea ecx, [esp + 0x4c]
call fcn.00401f43
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1310], 2
call fcn.004085d5
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x4c]
mov edi, eax
call fcn.004085f3
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x4c]
mov ebp, eax
call fcn.004085d5
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push fcn.004915f9
push ecx
mov ecx, dword [ebp + 4]
push edx
mov edx, dword [ebp]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.00408748
mov eax, dword [esp + 0x6c]
mov edi, 8
add esp, 0x20
cmp dword [esp + 0x60], edi
jae 0x479f1a
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x1f]
call fcn.00478e10
lea ecx, [esp + 0x48]
test al, al
je 0x479f6d
call fcn.0040199c
lea ecx, [esp + 0x64]
call fcn.0040199c
push ebx
call fcn.0048e976
add esp, 4
xor al, al
mov ecx, dword [esp + 0x1304]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x12ec]
xor ecx, esp
call fcn.0048ebcd
add esp, 0x12fc
ret
push 0x4e9308
call fcn.0041b870
test eax, eax
je 0x47a150
push str..fdf
lea ecx, [esp + 0x4c]
call fcn.0041b870
test eax, eax
je 0x47a150
push str..xfdf
lea ecx, [esp + 0x4c]
call fcn.0041b870
test eax, eax
je 0x47a150
push str..xdp
lea ecx, [esp + 0x4c]
call fcn.0041b870
test eax, eax
je 0x47a150
lea ecx, [esp + 0x48]
mov byte [esp + 0x130c], 1
call fcn.0040199c
lea ecx, [esp + 0x80]
push ecx
call fcn.00476880
add esp, 4
mov ecx, dword [esp + 0x94]
mov byte [esp + 0x130c], 3
test ecx, ecx
je 0x47a035
mov edx, dword [esp + 0x84]
cmp dword [esp + 0x98], edi
jae 0x47a00c
lea edx, [esp + 0x84]
mov eax, dword [esp + 0x68]
cmp dword [esp + 0x7c], edi
jae 0x47a01a
lea eax, [esp + 0x68]
push ecx
push edx
push eax
call fcn.004926d8
add esp, 0xc
test eax, eax
jne 0x47a035
lea ecx, [esp + 0x80]
jmp 0x47a154
mov ecx, dword [0x50dd18]
push 4
lea edx, [esp + 0xa0]
push edx
call fcn.0040a0e4
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0xb0]
lea edi, [ecx + eax + 1]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
mov byte [esp + 0x130c], 4
neg ecx
or ecx, eax
push ecx
call fcn.0048e1ac
mov ebp, eax
mov dword [esp + 0x2c], ebp
lea eax, [edi + edi]
push eax
push 0
push ebp
mov byte [esp + 0x131c], 5
call fcn.0048f0d0
mov ebx, 8
add esp, 0x10
cmp dword [esi + 0x18], ebx
jb 0x47a0a7
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
jmp 0x47a0ab
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xa0]
cmp dword [esp + 0xb4], ebx
jae 0x47a0c2
lea ecx, [esp + 0xa0]
push eax
push ecx
push edi
push ebp
call fcn.00401313
mov ecx, dword [0x50dd18]
add esp, 0x10
push 3
lea edx, [esp + 0x4c]
push edx
call fcn.0040a0e4
cmp dword [eax + 0x18], ebx
jb 0x47a0ea
mov eax, dword [eax + 4]
jmp 0x47a0ed
add eax, 4
mov ecx, dword [0x50dd18]
push 0x34
push eax
push ebp
call fcn.00404209
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
lea ecx, [esp + 0x48]
sete bl
call fcn.0040199c
push ebp
call fcn.0048e976
add esp, 4
lea ecx, [esp + 0x9c]
call fcn.0040199c
lea ecx, [esp + 0x80]
call fcn.0040199c
lea ecx, [esp + 0x64]
call fcn.0040199c
mov eax, dword [esp + 0x24]
push eax
call fcn.0048e976
add esp, 4
mov al, bl
jmp 0x479f45
lea ecx, [esp + 0x48]
call fcn.0040199c
lea ecx, [esp + 0x64]
call fcn.0040199c
push ebx
call fcn.0048e976
add esp, 4
mov al, 1
jmp 0x479f45