Function at 0x479430
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4c9862
mov eax, dword fs:[0]
push eax
mov eax, 0x12f0
call fcn.00490990
mov eax, dword [0x509354]
xor eax, esp
mov dword [esp + 0x12ec], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x509354]
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 0x479713
mov ebp, 8
cmp dword [esi + 0x18], ebp
jb 0x479497
mov eax, dword [esi + 4]
lea edi, [esi + 4]
mov dword [esp + 0x14], edi
jmp 0x4794a0
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 0x4794ca
cmp dword [esi + 0x18], ebp
jb 0x4794b4
mov eax, dword [edi]
jmp 0x4794b6
mov eax, edi
push 3
push eax
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
jne 0x4794f2
mov al, 1
jmp 0x479715
cmp dword [esi + 0x18], ebp
jb 0x4794d3
mov eax, dword [edi]
jmp 0x4794d5
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x479713
push str.file:__
push 0
mov ecx, esi
call fcn.0042e850
xor eax, eax
push 0x1046
push eax
lea ecx, [esp + 0x2c2]
push ecx
mov word [esp + 0x2c4], ax
call fcn.0048e760
add esp, 0xc
mov dword [esp + 0x1c], 0x824
cmp dword [esi + 0x18], ebp
jb 0x479523
mov eax, dword [edi]
jmp 0x479525
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 0x479713
cmp dword [esp + 0x1c], eax
jbe 0x479713
push str.file:__
mov ecx, esi
call fcn.004028b9
lea edx, [esp + 0x2b8]
push edx
mov ecx, esi
call fcn.004028be
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.0048d83c
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.0048e760
add esp, 0x10
cmp dword [esi + 0x18], ebp
jb 0x4795b3
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 0x47970b
mov ecx, esi
call fcn.004028b9
lea eax, [esp + 0x2b8]
push eax
lea ecx, [esp + 0x68]
call fcn.00401f35
lea ecx, [esp + 0x64]
push 0
push ecx
mov byte [esp + 0x1314], 1
call fcn.00453300
add esp, 8
test al, al
je 0x479701
cmp dword [esp + 0x78], 0
jbe 0x479701
xor edx, edx
push 0x1fe
push edx
lea eax, [esp + 0xc2]
push eax
mov word [esp + 0xc4], dx
call fcn.0048e760
mov eax, dword [esp + 0x74]
add esp, 0xc
cmp dword [esp + 0x7c], ebp
jae 0x47963e
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.00494b85
add esp, 0x24
test eax, eax
jne 0x479701
lea edx, [esp + 0xb8]
push edx
lea ecx, [esp + 0x4c]
call fcn.00401f35
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1310], 2
call fcn.004088e2
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x4c]
mov edi, eax
call fcn.00408900
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x4c]
mov ebp, eax
call fcn.004088e2
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push fcn.00490c89
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.00408aa0
mov eax, dword [esp + 0x6c]
mov edi, 8
add esp, 0x20
cmp dword [esp + 0x60], edi
jae 0x4796ea
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x1f]
call fcn.00478600
lea ecx, [esp + 0x48]
test al, al
je 0x47973d
call fcn.0040198e
lea ecx, [esp + 0x64]
call fcn.0040198e
push ebx
call fcn.0048e006
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.0048e25d
add esp, 0x12fc
ret
push 0x4e81d0
call fcn.0041b700
test eax, eax
je 0x479920
push str..fdf
lea ecx, [esp + 0x4c]
call fcn.0041b700
test eax, eax
je 0x479920
push str..xfdf
lea ecx, [esp + 0x4c]
call fcn.0041b700
test eax, eax
je 0x479920
push str..xdp
lea ecx, [esp + 0x4c]
call fcn.0041b700
test eax, eax
je 0x479920
lea ecx, [esp + 0x48]
mov byte [esp + 0x130c], 1
call fcn.0040198e
lea ecx, [esp + 0x80]
push ecx
call fcn.00476070
add esp, 4
mov ecx, dword [esp + 0x94]
mov byte [esp + 0x130c], 3
test ecx, ecx
je 0x479805
mov edx, dword [esp + 0x84]
cmp dword [esp + 0x98], edi
jae 0x4797dc
lea edx, [esp + 0x84]
mov eax, dword [esp + 0x68]
cmp dword [esp + 0x7c], edi
jae 0x4797ea
lea eax, [esp + 0x68]
push ecx
push edx
push eax
call fcn.00491b8e
add esp, 0xc
test eax, eax
jne 0x479805
lea ecx, [esp + 0x80]
jmp 0x479924
mov ecx, dword [0x50bcf8]
push 4
lea edx, [esp + 0xa0]
push edx
call fcn.0040a181
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.0048d83c
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.0048e760
mov ebx, 8
add esp, 0x10
cmp dword [esi + 0x18], ebx
jb 0x479877
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
jmp 0x47987b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xa0]
cmp dword [esp + 0xb4], ebx
jae 0x479892
lea ecx, [esp + 0xa0]
push eax
push ecx
push edi
push ebp
call fcn.00401305
mov ecx, dword [0x50bcf8]
add esp, 0x10
push 3
lea edx, [esp + 0x4c]
push edx
call fcn.0040a181
cmp dword [eax + 0x18], ebx
jb 0x4798ba
mov eax, dword [eax + 4]
jmp 0x4798bd
add eax, 4
mov ecx, dword [0x50bcf8]
push 0x34
push eax
push ebp
call fcn.004043cb
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
lea ecx, [esp + 0x48]
sete bl
call fcn.0040198e
push ebp
call fcn.0048e006
add esp, 4
lea ecx, [esp + 0x9c]
call fcn.0040198e
lea ecx, [esp + 0x80]
call fcn.0040198e
lea ecx, [esp + 0x64]
call fcn.0040198e
mov eax, dword [esp + 0x24]
push eax
call fcn.0048e006
add esp, 4
mov al, bl
jmp 0x479715
lea ecx, [esp + 0x48]
call fcn.0040198e
lea ecx, [esp + 0x64]
call fcn.0040198e
push ebx
call fcn.0048e006
add esp, 4
mov al, 1
jmp 0x479715