Function at 0x4b0580
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526bc9
mov eax, dword fs:[0]
push eax
mov eax, 0x10e0
call fcn.004f9af0
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x28]
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x10b4], eax
cmp dword [ebp - 0x10b4], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10c4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10d0], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x10c8], eax
mov dword [ebp - 0x10b8], ecx
mov dword [ebp - 0x10cc], ebx
mov dword [ebp - 0x10bc], 0
je 0x4b0613
mov ecx, dword [ebp - 0x10b4]
mov byte [ecx], 0
mov ecx, dword [ebp - 0x10b8]
test ebx, ebx
je 0x4b061a
mov byte [ebx], 0
test edx, edx
je 0x4b0621
mov byte [edx], 0
mov edx, dword [ebp - 0x10c4]
test edx, edx
je 0x4b062e
mov byte [edx], 0
test eax, eax
je 0x4b0646
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], 0
jb 0x4b0641
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
test esi, esi
je 0x4b0662
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4b065b
mov eax, dword [esi]
jmp 0x4b065d
mov eax, esi
xor edx, edx
mov word [eax], dx
test ecx, ecx
je 0x4b067a
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x4b0675
mov ecx, dword [ecx]
xor eax, eax
mov word [ecx], ax
cmp dword [edi + 0x10], 0
jne 0x4b0687
xor al, al
jmp 0x4b0bd9
cmp dword [edi + 0x14], 8
jb 0x4b0691
mov eax, dword [edi]
jmp 0x4b0693
mov eax, edi
push 3
push eax
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
cmp dword [edi + 0x14], 8
mov ebx, eax
mov dword [ebp - 0x10b0], ebx
jb 0x4b06ae
mov ecx, dword [edi]
jmp 0x4b06b0
mov ecx, edi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
jne 0x4b06ee
test ebx, ebx
jne 0x4b06ee
cmp dword [edi + 0x14], 8
jb 0x4b06c9
mov eax, dword [edi]
jmp 0x4b06cb
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b0680
push str.file:__
push 0
mov ecx, edi
call fcn.00426770
mov dword [ebp - 0x10b0], 1
push esi
push edi
call fcn.004b2a00
mov ebx, eax
add esp, 8
cmp ebx, 1
je 0x4b070d
cmp ebx, 4
je 0x4b070d
cmp ebx, 2
jne 0x4b0680
mov eax, dword [ebp - 0x10b0]
mov esi, 2
test eax, eax
je 0x4b0a63
xor eax, eax
push 0x1046
push eax
mov word [ebp - 0x1058], ax
lea eax, [ebp - 0x1056]
push eax
call fcn.004f9050
add esp, 0xc
mov dword [ebp - 0x105c], 0x824
cmp dword [edi + 0x14], 8
jb 0x4b0752
mov eax, dword [edi]
jmp 0x4b0754
mov eax, edi
push 0
lea ecx, [ebp - 0x105c]
push ecx
lea ecx, [ebp - 0x1058]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
jne 0x4b0680
cmp dword [ebp - 0x105c], eax
je 0x4b0680
push str.file:__
mov ecx, edi
call fcn.0040b8c0
lea eax, [ebp - 0x1058]
mov ecx, edi
push eax
call fcn.0042ec80
mov eax, dword [edi + 0x10]
xor ecx, ecx
push 0x57fece
lea eax, [eax + eax*2]
mov dword [ebp - 0x10a8], eax
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00419c57
mov esi, eax
add esp, 8
mov dword [ebp - 0x10d4], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4b0a9c
mov eax, dword [ebp - 0x10a8]
add eax, eax
push eax
push 0
push esi
call fcn.004f9050
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x4b07f3
mov eax, dword [edi]
jmp 0x4b07f5
mov eax, edi
push 0x20001000
lea ecx, [ebp - 0x10a8]
push ecx
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_UrlCanonicalizeW]
test eax, eax
jne 0x4b0a9c
push esi
mov ecx, edi
call fcn.0040b8c0
lea eax, [ebp - 0x1058]
mov byte [ebp - 0x10a9], 0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
movzx ecx, byte [ebp - 0x10a9]
test eax, eax
mov eax, dword [ebp - 0x10cc]
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x10c0], ecx
test eax, eax
je 0x4b0850
mov byte [eax], cl
lea eax, [ebp - 0x1058]
push eax
lea ecx, [ebp - 0x1074]
call fcn.004076f0
push 0
lea eax, [ebp - 0x1074]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.0041fe40
add esp, 0xc
test al, al
je 0x4b0a81
mov edx, dword [ebp - 0x10d0]
test edx, edx
je 0x4b08c6
cmp dword [ebp - 0x1060], 8
lea ecx, [ebp - 0x1074]
push 0
cmovae ecx, dword [ebp - 0x1074]
xor eax, eax
cmp byte [ebp - 0x10c0], al
push 0
setne al
push eax
lea eax, [ebp - 0x1074]
push eax
push ecx
mov ecx, edx
call fcn.00473fd0
test al, al
je 0x4b0a81
cmp dword [ebp - 0x1064], 0
jbe 0x4b0a81
mov eax, dword [ebp - 0x10b4]
test eax, eax
je 0x4b08e0
mov byte [eax], 1
mov ecx, dword [ebp - 0x10c8]
test ecx, ecx
je 0x4b08fe
lea eax, [ebp - 0x1074]
cmp ecx, eax
je 0x4b08fe
push 0xffffffffffffffff
push 0
push eax
call fcn.00407d00
cmp dword [ebp - 0x1060], 8
lea eax, [ebp - 0x1074]
cmovae eax, dword [ebp - 0x1074]
push eax
lea eax, [ebp - 0x108c]
push eax
call fcn.00476730
add esp, 8
cmp dword [ebp - 0x107c], 0
mov byte [ebp - 4], 2
je 0x4b0a03
mov ecx, dword [ebp - 0x10b8]
test ecx, ecx
je 0x4b0951
lea eax, [ebp - 0x108c]
cmp ecx, eax
je 0x4b0951
push 0xffffffffffffffff
push 0
push eax
call fcn.00407d00
cmp dword [ebp - 0x1078], 8
lea eax, [ebp - 0x108c]
push 1
cmovae eax, dword [ebp - 0x108c]
push eax
call fcn.004b1e10
add esp, 8
test al, al
jne 0x4b0a0c
lea eax, [ebp - 0x108c]
push str..pdf
push eax
call fcn.004266c0
add esp, 8
test al, al
jne 0x4b09d8
lea eax, [ebp - 0x108c]
push str..fdf
push eax
call fcn.004266c0
add esp, 8
test al, al
jne 0x4b09d8
lea eax, [ebp - 0x108c]
push str..xfdf
push eax
call fcn.004266c0
add esp, 8
test al, al
jne 0x4b09d8
lea eax, [ebp - 0x108c]
push str..xdp
push eax
call fcn.004266c0
add esp, 8
test al, al
je 0x4b0a32
cmp ebx, 2
jne 0x4b0a32
lea ecx, [ebp - 0x108c]
mov bl, 1
call fcn.004087d0
lea ecx, [ebp - 0x1074]
call fcn.004087d0
push esi
call fcn.0041d0a7
add esp, 4
jmp 0x4b0bd7
cmp byte [ebp - 0x10c0], 0
jne 0x4b0a32
lea ecx, [ebp - 0x108c]
xor bl, bl
call fcn.004087d0
lea ecx, [ebp - 0x1074]
call fcn.004087d0
push esi
call fcn.0041d0a7
add esp, 4
jmp 0x4b0bd7
lea ecx, [ebp - 0x108c]
call fcn.004087d0
lea ecx, [ebp - 0x1074]
call fcn.004087d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.0041d0a7
mov eax, dword [ebp - 0x10b0]
add esp, 4
mov esi, 2
cmp ebx, 1
je 0x4b0aac
cmp ebx, 4
je 0x4b0aac
test eax, eax
jne 0x4b0aac
cmp ebx, 2
jne 0x4b0680
mov al, 1
jmp 0x4b0bd9
lea ecx, [ebp - 0x1074]
xor bl, bl
call fcn.004087d0
push esi
call fcn.0041d0a7
add esp, 4
jmp 0x4b0bd7
push esi
xor bl, bl
call fcn.0041d0a7
add esp, 4
jmp 0x4b0bd7
mov ecx, dword [0x57f480]
test ecx, ecx
je 0x4b0680
push 4
lea eax, [ebp - 0x10a4]
push eax
call fcn.0047330c
mov eax, dword [ebp - 0x1094]
xor ecx, ecx
mov ebx, dword [edi + 0x10]
inc eax
add ebx, eax
mov dword [ebp - 4], 3
mov eax, ebx
mul esi
push 0x57fece
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00419c57
mov esi, eax
add esp, 8
mov dword [ebp - 0x10d4], esi
mov byte [ebp - 4], 4
test esi, esi
je 0x4b0bc1
lea eax, [ebx + ebx]
push eax
push 0
push esi
call fcn.004f9050
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x4b0b21
mov edi, dword [edi]
cmp dword [ebp - 0x1090], 8
lea eax, [ebp - 0x10a4]
push edi
cmovae eax, dword [ebp - 0x10a4]
push eax
push ebx
push esi
call fcn.0040bd80
add esp, 0x10
test eax, eax
jne 0x4b0bc1
mov eax, dword [ebp - 0x10c4]
test eax, eax
je 0x4b0b52
mov byte [eax], 1
mov ecx, dword [0x57f480]
test ecx, ecx
je 0x4b0b93
push 3
lea eax, [ebp - 0x10ec]
push eax
call fcn.0047330c
mov edi, eax
mov dword [ebp - 0x10bc], 1
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 5
jb 0x4b0b82
mov edi, dword [edi]
mov ecx, dword [0x57f480]
test ecx, ecx
je 0x4b0b98
call fcn.0045ffd0
jmp 0x4b0b9a
mov edi, 0x52d9b8
xor eax, eax
push 0x34
push edi
push esi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
sete bl
test byte [ebp - 0x10bc], 1
je 0x4b0bc3
lea ecx, [ebp - 0x10ec]
call fcn.004087d0
jmp 0x4b0bc3
xor bl, bl
push esi
call fcn.0041d0a7
add esp, 4
lea ecx, [ebp - 0x10a4]
call fcn.004087d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret