Function at 0x4a06a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1f32
mov eax, dword fs:[0]
push eax
mov eax, 0x12dc
call fcn.004b8260
mov eax, dword [0x522638]
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 edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x12e4], edi
mov dword [ebp - 0x12d4], eax
mov dword [ebp - 0x12e8], ecx
mov dword [ebp - 0x12cc], edx
cmp edi, ebx
je 0x4a0701
mov byte [edi], bl
cmp eax, ebx
je 0x4a0707
mov byte [eax], bl
cmp ecx, ebx
je 0x4a070d
mov byte [ecx], bl
mov edi, 8
cmp edx, ebx
je 0x4a0729
mov dword [edx + 0x10], ebx
cmp dword [edx + 0x14], edi
jb 0x4a0722
mov eax, dword [edx]
jmp 0x4a0724
mov eax, edx
xor ecx, ecx
mov word [eax], cx
cmp dword [esi + 0x10], ebx
je 0x4a0860
cmp dword [esi + 0x14], edi
jb 0x4a073b
mov eax, dword [esi]
jmp 0x4a073d
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x4a0767
cmp dword [esi + 0x14], edi
jb 0x4a0751
mov eax, dword [esi]
jmp 0x4a0753
mov eax, esi
push 3
push eax
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
cmp eax, ebx
jne 0x4a0790
mov al, 1
jmp 0x4a0862
cmp dword [esi + 0x14], edi
jb 0x4a0770
mov eax, dword [esi]
jmp 0x4a0772
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a0860
push 7
push str.file:__
push ebx
mov ecx, esi
call fcn.00421470
push 0x1046
lea eax, [ebp - 0x1256]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x1258], dx
call fcn.004b8020
add esp, 0xc
mov dword [ebp - 0x12e0], 0x824
cmp dword [esi + 0x14], edi
jb 0x4a07c1
mov eax, dword [esi]
jmp 0x4a07c3
mov eax, esi
push ebx
lea ecx, [ebp - 0x12e0]
push ecx
lea edx, [ebp - 0x1258]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
jne 0x4a0860
cmp dword [ebp - 0x12e0], ebx
jbe 0x4a0860
push 7
push str.file:__
mov ecx, esi
call fcn.00405fe0
lea eax, [ebp - 0x1258]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a0800
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1258]
push eax
mov ecx, esi
call fcn.0040d980
mov eax, dword [esi + 0x10]
lea eax, [eax + eax*2]
xor ecx, ecx
mov dword [ebp - 0x12d8], eax
mov edx, 2
mul edx
seto cl
push 0x525eb5
neg ecx
or ecx, eax
push ecx
call fcn.004282c1
mov edi, eax
add esp, 8
mov dword [ebp - 0x12dc], edi
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x4a087e
push ebx
call fcn.0041ecb3
add esp, 4
xor al, al
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.00401306
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x12d8]
lea ecx, [eax + eax]
push ecx
push ebx
push edi
call fcn.004b8020
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4a089c
mov eax, dword [esi]
jmp 0x4a089e
mov eax, esi
push 0x20001000
lea edx, [ebp - 0x12d8]
push edx
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_UrlCanonicalizeW]
push edi
test eax, eax
jne 0x4a0858
mov ecx, esi
call fcn.00438ae0
lea eax, [ebp - 0x1258]
push eax
lea ecx, [ebp - 0x1274]
call fcn.00408720
lea ecx, [ebp - 0x1274]
push ebx
push ecx
mov byte [ebp - 4], 1
call fcn.0041e6e0
add esp, 8
test al, al
je 0x4a0a23
cmp dword [ebp - 0x1264], ebx
jbe 0x4a0a23
mov eax, dword [ebp - 0x12e4]
cmp eax, ebx
je 0x4a0905
mov byte [eax], 1
cmp dword [ebp - 0x12cc], ebx
je 0x4a0922
mov ecx, dword [ebp - 0x12cc]
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x1274]
push edx
call fcn.00406640
push 0x1fe
lea ecx, [ebp - 0x20e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x210], ax
call fcn.004b8020
mov eax, dword [ebp - 0x1274]
add esp, 0xc
cmp dword [ebp - 0x1260], 8
jae 0x4a0955
lea eax, [ebp - 0x1274]
push pe_nt_image_headers32
lea edx, [ebp - 0x210]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call fcn.004b9ecb
add esp, 0x24
test eax, eax
jne 0x4a0a23
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x1290]
call fcn.00408720
mov eax, dword [ebp - 0x127c]
mov ecx, dword [ebp - 0x1290]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x4a09a7
mov dword [ebp - 0x12cc], ecx
jmp 0x4a09b3
lea edx, [ebp - 0x1290]
mov dword [ebp - 0x12cc], edx
mov ebx, ecx
cmp eax, 8
jae 0x4a09c0
lea ebx, [ebp - 0x1290]
lea eax, [ebp - 0x12e4]
push eax
lea ecx, [ebp - 0x1290]
call fcn.00459ff0
mov ecx, dword [ebp - 0x12cc]
mov edx, dword [eax]
push fcn.00418c6e
push ecx
push edx
lea eax, [ebp - 0x12cc]
push ebx
push eax
call fcn.0044b230
mov eax, dword [ebp - 0x1290]
add esp, 0x14
cmp dword [ebp - 0x127c], 8
jae 0x4a0a06
lea eax, [ebp - 0x1290]
push 1
push eax
lea ecx, [ebp - 0x12cd]
call fcn.0049f850
lea ecx, [ebp - 0x1290]
test al, al
je 0x4a0a34
call fcn.00409f90
lea ecx, [ebp - 0x1274]
call fcn.00409f90
push edi
jmp 0x4a0858
push str..pdf
call fcn.0043ea00
test eax, eax
je 0x4a0c5d
push str..fdf
lea ecx, [ebp - 0x1290]
call fcn.0043ea00
test eax, eax
je 0x4a0c5d
push str..xfdf
lea ecx, [ebp - 0x1290]
call fcn.0043ea00
test eax, eax
je 0x4a0c5d
push str..xdp
lea ecx, [ebp - 0x1290]
call fcn.0043ea00
test eax, eax
je 0x4a0c5d
lea ecx, [ebp - 0x1290]
mov byte [ebp - 4], 1
call fcn.00409f90
lea ecx, [ebp - 0x12ac]
push ecx
call fcn.0049e520
add esp, 4
mov ecx, dword [ebp - 0x129c]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x4a0b0e
mov edx, dword [ebp - 0x12ac]
mov eax, 8
cmp dword [ebp - 0x1298], eax
jae 0x4a0ad3
lea edx, [ebp - 0x12ac]
cmp dword [ebp - 0x1260], eax
mov eax, dword [ebp - 0x1274]
jae 0x4a0ae7
lea eax, [ebp - 0x1274]
push ecx
push edx
push eax
call fcn.0041930b
add esp, 0xc
test eax, eax
jne 0x4a0b0e
mov eax, dword [ebp - 0x12d4]
test eax, eax
je 0x4a0b03
mov byte [eax], 1
lea ecx, [ebp - 0x12ac]
jmp 0x4a0c63
mov ecx, dword [0x52513c]
push 4
lea edx, [ebp - 0x12c8]
push edx
call fcn.0043e3fc
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x12b8]
lea ebx, [ecx + eax + 1]
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
push 0x525eb5
neg ecx
or ecx, eax
push ecx
call fcn.004282c1
mov edi, eax
add esp, 8
mov dword [ebp - 0x12d4], edi
mov byte [ebp - 4], 5
test edi, edi
jne 0x4a0b95
push eax
call fcn.0041ecb3
add esp, 4
lea ecx, [ebp - 0x12c8]
call fcn.00409f90
lea ecx, [ebp - 0x12ac]
call fcn.00409f90
lea ecx, [ebp - 0x1274]
call fcn.00409f90
mov eax, dword [ebp - 0x12dc]
push eax
jmp 0x4a0858
lea ecx, [ebx + ebx]
push ecx
push 0
push edi
call fcn.004b8020
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4a0bac
mov esi, dword [esi]
cmp dword [ebp - 0x12b4], 8
mov eax, dword [ebp - 0x12c8]
jae 0x4a0bc1
lea eax, [ebp - 0x12c8]
push esi
push eax
push ebx
push edi
call fcn.004089f0
mov eax, dword [ebp - 0x12e8]
add esp, 0x10
test eax, eax
je 0x4a0bda
mov byte [eax], 1
mov ecx, dword [0x52513c]
push 3
lea edx, [ebp - 0x1290]
push edx
call fcn.0043e3fc
cmp dword [eax + 0x14], 8
jb 0x4a0bf6
mov eax, dword [eax]
mov ecx, dword [0x52513c]
push 0x34
push eax
push edi
call fcn.004434e0
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
lea ecx, [ebp - 0x1290]
sete bl
call fcn.00409f90
push edi
call fcn.0041ecb3
add esp, 4
lea ecx, [ebp - 0x12c8]
call fcn.00409f90
lea ecx, [ebp - 0x12ac]
call fcn.00409f90
lea ecx, [ebp - 0x1274]
call fcn.00409f90
mov eax, dword [ebp - 0x12dc]
push eax
call fcn.0041ecb3
add esp, 4
mov al, bl
jmp 0x4a0862
lea ecx, [ebp - 0x1290]
call fcn.00409f90
lea ecx, [ebp - 0x1274]
call fcn.00409f90
push edi
call fcn.0041ecb3
add esp, 4
mov al, 1
jmp 0x4a0862