Function at 0x4cddb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5613d5
mov eax, dword fs:[0]
push eax
mov eax, 0x10c8
call fcn.005271e0
mov eax, dword [0x5c7cec]
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 edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x28]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10ac], eax
cmp dword [ebp - 0x10ac], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10b4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10a4], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x1090], edi
mov dword [ebp - 0x1098], esi
mov dword [ebp - 0x10b0], eax
mov dword [ebp - 0x10bc], edx
mov dword [ebp - 0x10b8], 0
je 0x4cde49
mov eax, dword [ebp - 0x10ac]
mov byte [eax], 0
mov eax, dword [ebp - 0x10b0]
test edx, edx
je 0x4cde50
mov byte [edx], 0
test ecx, ecx
je 0x4cde57
mov byte [ecx], 0
mov ecx, dword [ebp - 0x10b4]
test ecx, ecx
je 0x4cde64
mov byte [ecx], 0
test edi, edi
je 0x4cde7e
cmp dword [edi + 0x14], 8
mov ecx, edi
mov dword [edi + 0x10], 0
jb 0x4cde79
mov ecx, dword [edi]
xor edx, edx
mov word [ecx], dx
test esi, esi
je 0x4cde98
cmp dword [esi + 0x14], 8
mov ecx, esi
mov dword [esi + 0x10], 0
jb 0x4cde93
mov ecx, dword [esi]
xor edx, edx
mov word [ecx], dx
test eax, eax
je 0x4cdeb2
cmp dword [eax + 0x14], 8
mov ecx, eax
mov dword [eax + 0x10], 0
jb 0x4cdead
mov ecx, dword [eax]
xor eax, eax
mov word [ecx], ax
cmp dword [ebx + 0x10], 0
je 0x4ce77f
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4cdec6
mov eax, dword [ebx]
push 3
push eax
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
cmp dword [ebx + 0x14], 8
mov ecx, ebx
mov dword [ebp - 0x10a0], eax
jb 0x4cdedf
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
jne 0x4cdfd6
cmp dword [ebp - 0x10a0], eax
jne 0x4cdfd6
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4cdf04
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ce77f
mov edx, dword [ebx + 0x14]
mov eax, edx
mov ecx, dword [ebx + 0x10]
sub eax, ecx
cmp eax, 7
jb 0x4cdfad
lea eax, [ecx + 7]
mov edi, ebx
mov dword [ebx + 0x10], eax
cmp edx, 8
jb 0x4cdf35
mov edi, dword [ebx]
cmp edi, 0x58cd32
jae 0x4cdf5f
lea eax, [edi + ecx*2]
cmp eax, str.file:__
jb 0x4cdf5f
cmp edi, str.file:__
ja 0x4cdf53
xor esi, esi
jmp 0x4cdf64
mov esi, edi
sub esi, str.file:__
sar esi, 1
jmp 0x4cdf64
mov esi, 7
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0xe]
push edi
push eax
call fcn.00528b70
add esi, esi
push esi
push str.file:__
push edi
call fcn.005285f0
mov eax, 0xe
sub eax, esi
push eax
lea eax, [esi + 0x58cd32]
push eax
lea eax, [esi + edi]
push eax
call fcn.005285f0
mov esi, dword [ebp - 0x1098]
add esp, 0x24
mov edi, dword [ebp - 0x1090]
jmp 0x4cdfcc
push 7
push str.file:__
push 0
mov byte [ebp - 0x1098], 0
mov ecx, ebx
push dword [ebp - 0x1098]
push 7
call fcn.0043be70
mov dword [ebp - 0x10a0], 1
push esi
push ebx
call fcn.004d0fc0
add esp, 8
mov dword [ebp - 0x109c], eax
cmp eax, 1
je 0x4cdff9
cmp eax, 4
je 0x4cdff9
cmp eax, 2
jne 0x4ce77f
cmp dword [ebp - 0x10a0], 0
mov esi, 2
je 0x4ce400
push 0x1048
lea eax, [ebp - 0x1058]
push 0
push eax
call fcn.005290f0
add esp, 0xc
mov dword [ebp - 0x108c], 0x824
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4ce035
mov eax, dword [ebx]
push 0
lea ecx, [ebp - 0x108c]
push ecx
lea ecx, [ebp - 0x1058]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
jne 0x4ce77f
cmp dword [ebp - 0x108c], eax
je 0x4ce77f
push 7
push str.file:__
mov ecx, ebx
call fcn.00408740
lea ecx, [ebp - 0x1058]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
test ax, ax
jne 0x4ce077
sub ecx, edx
lea eax, [ebp - 0x1058]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.0040cd80
mov eax, dword [ebx + 0x10]
xor ecx, ecx
push 0x5cd774
lea eax, [eax + eax*2]
mov dword [ebp - 0x1090], eax
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041e02e
mov esi, eax
add esp, 8
mov dword [ebp - 0x10a8], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4ce49a
mov eax, dword [ebp - 0x1090]
add eax, eax
push eax
push 0
push esi
call fcn.005290f0
add esp, 0xc
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x4ce0ee
mov eax, dword [ebx]
push 0x20001000
lea ecx, [ebp - 0x1090]
push ecx
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_UrlCanonicalizeW]
test eax, eax
jne 0x4ce49a
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ce110
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.00408740
lea eax, [ebp - 0x1058]
mov byte [ebp - 0x1091], 0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
movzx ecx, byte [ebp - 0x1091]
test eax, eax
mov eax, dword [ebp - 0x10bc]
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x1098], ecx
test eax, eax
je 0x4ce15f
mov byte [eax], cl
lea eax, [ebp - 0x1058]
push eax
lea ecx, [ebp - 0x1088]
call fcn.0040d7b0
push 0
lea eax, [ebp - 0x1088]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.004257c0
add esp, 0xc
test al, al
je 0x4ce47d
mov edx, dword [ebp - 0x10a4]
test edx, edx
je 0x4ce1d3
mov eax, dword [ebp - 0x1098]
lea ecx, [ebp - 0x1088]
cmp dword [ebp - 0x1074], 8
push 0
cmovae ecx, dword [ebp - 0x1088]
push 0
movzx eax, al
push eax
lea eax, [ebp - 0x1088]
push eax
push ecx
mov ecx, edx
call fcn.00492fb0
test al, al
je 0x4ce47d
cmp dword [ebp - 0x1078], 0
jbe 0x4ce47d
mov eax, dword [ebp - 0x10ac]
test eax, eax
je 0x4ce1ed
mov byte [eax], 1
test edi, edi
je 0x4ce1ff
lea eax, [ebp - 0x1088]
mov ecx, edi
push eax
call fcn.00428c90
cmp dword [ebp - 0x1074], 8
lea eax, [ebp - 0x1088]
cmovae eax, dword [ebp - 0x1088]
push eax
lea eax, [ebp - 0x1070]
push eax
call fcn.004959c0
add esp, 8
cmp dword [ebp - 0x1060], 0
mov byte [ebp - 4], 2
je 0x4ce3a3
mov ecx, dword [ebp - 0x10b0]
test ecx, ecx
je 0x4ce24a
lea eax, [ebp - 0x1070]
push eax
call fcn.00428c90
cmp dword [ebp - 0x105c], 8
lea eax, [ebp - 0x1070]
push 1
cmovae eax, dword [ebp - 0x1070]
push eax
call fcn.004cfba0
add esp, 8
cmp eax, 3
je 0x4ce3ac
test eax, eax
je 0x4ce3ac
mov eax, dword [ebp - 0x105c]
lea edi, [ebp - 0x1070]
mov ecx, dword [ebp - 0x1070]
cmp eax, 8
mov edx, dword [ebp - 0x1060]
cmovae edi, ecx
cmp edx, 4
jne 0x4ce2cc
mov ecx, str..pdf
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x4ce2ba
add ecx, 2
sub edx, 1
jne 0x4ce2a4
jmp 0x4ce372
mov eax, dword [ebp - 0x105c]
mov ecx, dword [ebp - 0x1070]
mov edx, dword [ebp - 0x1060]
cmp eax, 8
lea edi, [ebp - 0x1070]
cmovae edi, ecx
cmp edx, 4
jne 0x4ce30c
mov ecx, str..fdf
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x4ce2fa
add ecx, 2
sub edx, 1
jne 0x4ce2e4
jmp 0x4ce372
mov eax, dword [ebp - 0x105c]
mov ecx, dword [ebp - 0x1070]
mov edx, dword [ebp - 0x1060]
cmp eax, 8
lea edi, [ebp - 0x1070]
cmovae edi, ecx
cmp edx, 5
jne 0x4ce349
mov ecx, str..xfdf
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x4ce337
add ecx, 2
sub edx, 1
jne 0x4ce324
jmp 0x4ce372
mov eax, dword [ebp - 0x105c]
mov ecx, dword [ebp - 0x1070]
mov edx, dword [ebp - 0x1060]
cmp eax, 8
lea edi, [ebp - 0x1070]
cmovae edi, ecx
cmp edx, 4
jne 0x4ce3d4
mov ecx, str..xdp
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x4ce3d4
add ecx, 2
sub edx, 1
jne 0x4ce361
cmp dword [ebp - 0x109c], 2
jne 0x4ce3d4
lea ecx, [ebp - 0x1070]
mov bl, 1
call fcn.00408e50
lea ecx, [ebp - 0x1088]
call fcn.00408e50
push esi
call fcn.0041e6ef
add esp, 4
mov al, bl
jmp 0x4ce781
cmp byte [ebp - 0x1098], 0
jne 0x4ce3d4
lea ecx, [ebp - 0x1070]
xor bl, bl
call fcn.00408e50
lea ecx, [ebp - 0x1088]
call fcn.00408e50
push esi
call fcn.0041e6ef
add esp, 4
mov al, bl
jmp 0x4ce781
lea ecx, [ebp - 0x1070]
call fcn.00408e50
lea ecx, [ebp - 0x1088]
call fcn.00408e50
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.0041e6ef
mov eax, dword [ebp - 0x109c]
add esp, 4
cmp eax, 2
jne 0x4ce720
xor ecx, ecx
mov edi, 0x5cd57c
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
jne 0x4ce500
push 0x5cd774
push 0x34
call fcn.0041df64
mov esi, eax
add esp, 8
mov dword [ebp - 0x10a8], esi
mov dword [ebp - 4], 3
test esi, esi
je 0x4ce4ac
mov byte [esi], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
lea eax, [esi + 4]
mov byte [ebp - 4], 5
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x4ce4ae
lea ecx, [ebp - 0x1088]
xor bl, bl
call fcn.00408e50
push esi
call fcn.0041e6ef
add esp, 4
mov al, bl
jmp 0x4ce781
push esi
xor bl, bl
call fcn.0041e6ef
add esp, 4
mov al, bl
jmp 0x4ce781
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4ce500
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x4ce500
lea eax, [esi + 4]
mov dword [ebp - 4], 6
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 7
call fcn.00409980
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 8
call fcn.00409980
push 0x34
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004097e6
add esp, 8
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [edi], ecx
mov ecx, eax
mov dword [ebp - 0x10a4], eax
call fcn.004d01b0
push 0
lea eax, [ebp - 0x1088]
push ebx
push eax
call fcn.0041d9e0
mov ecx, eax
call fcn.004cf1d0
cmp dword [ebp - 0x1074], 8
lea ecx, [ebp - 0x1088]
mov edx, dword [ebp - 0x1088]
lea edi, [ebp - 0x1088]
mov eax, dword [ebp - 0x1078]
cmovae ecx, edx
push fcn.0040d270
cmovae edi, edx
mov dword [ebp - 4], 9
push edi
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x1088]
cmovae ecx, edx
lea eax, [ebp - 0x10a8]
push ecx
push eax
call fcn.0040d1d0
mov edi, dword [ebp - 0x10a4]
lea eax, [ebp - 0x1088]
push eax
lea eax, [ebp - 0x10a8]
mov esi, dword [edi + 0x2c]
push esi
push dword [edi + 0x28]
push eax
call fcn.00428520
add esp, 0x24
cmp dword [eax], esi
je 0x4ce5cf
lea ecx, [ebp - 0x1088]
mov dword [ebp - 4], 0xffffffff
call fcn.00408e50
mov eax, dword [ebp - 0x109c]
cmp dword [ebp - 0x10a0], 0
jne 0x4ce5ee
cmp eax, 2
jne 0x4ce77f
mov al, 1
jmp 0x4ce781
cmp dword [ebp - 0x1078], 0
jne 0x4ce6e2
lea ecx, [ebp - 0x1088]
mov dword [ebp - 4], 0xffffffff
call fcn.00408e50
mov ecx, dword [0x5ccda4]
test ecx, ecx
je 0x4ce77f
push 4
lea eax, [ebp - 0x1070]
push eax
call fcn.00491b8e
mov eax, dword [ebp - 0x1060]
xor ecx, ecx
mov edi, dword [ebx + 0x10]
inc eax
add edi, eax
mov dword [ebp - 4], 0xa
mov eax, edi
mov edx, 2
mul edx
push 0x5cd774
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041e02e
mov esi, eax
add esp, 8
mov dword [ebp - 0x10a8], esi
mov byte [ebp - 4], 0xb
test esi, esi
je 0x4ce765
lea eax, [edi + edi]
push eax
push 0
push esi
call fcn.005290f0
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x4ce668
mov ebx, dword [ebx]
cmp dword [ebp - 0x105c], 8
lea eax, [ebp - 0x1070]
push ebx
cmovae eax, dword [ebp - 0x1070]
push eax
push edi
push esi
call fcn.0040db80
add esp, 0x10
test eax, eax
jne 0x4ce765
mov eax, dword [ebp - 0x10b4]
test eax, eax
je 0x4ce69d
mov byte [eax], 1
mov ecx, dword [0x5ccda4]
test ecx, ecx
je 0x4ce737
push 3
lea eax, [ebp - 0x10d4]
push eax
call fcn.00491b8e
mov edi, eax
mov dword [ebp - 0x10b8], 1
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 0xc
jb 0x4ce6d1
mov edi, dword [edi]
mov ecx, dword [0x5ccda4]
test ecx, ecx
je 0x4ce73c
call fcn.004c44f0
jmp 0x4ce73e
mov esi, dword [edi + 0x20]
lea eax, [ebp - 0x1088]
push eax
push esi
push dword [edi + 0x1c]
lea eax, [ebp - 0x10a4]
push eax
call fcn.00428520
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1088]
mov edi, dword [eax]
call fcn.00408e50
cmp edi, esi
je 0x4ce5b0
jmp 0x4ce5ee
cmp eax, 1
je 0x4ce5ee
cmp eax, 4
je 0x4ce5ee
jmp 0x4ce5b6
mov edi, 0x569908
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 - 0x10b8], 1
je 0x4ce767
lea ecx, [ebp - 0x10d4]
call fcn.00408e50
jmp 0x4ce767
xor bl, bl
push esi
call fcn.0041e6ef
add esp, 4
lea ecx, [ebp - 0x1070]
call fcn.00408e50
mov al, bl
jmp 0x4ce781
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.0040154f
mov esp, ebp
pop ebp
ret