Function at 0x4dc5c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579434
mov eax, dword fs:[0]
push eax
mov eax, 0x10d0
call fcn.0053d080
mov eax, dword [0x5edd38]
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 edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x109c], eax
cmp dword [ebp - 0x109c], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10b8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10a8], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x10a0], edi
mov dword [ebp - 0x10ac], eax
mov dword [ebp - 0x1098], ecx
mov dword [ebp - 0x10c4], ebx
mov dword [ebp - 0x10bc], 0
je 0x4dc659
mov edi, dword [ebp - 0x109c]
mov byte [edi], 0
mov edi, dword [ebp - 0x10a0]
test ebx, ebx
je 0x4dc660
mov byte [ebx], 0
test edx, edx
je 0x4dc667
mov byte [edx], 0
mov edx, dword [ebp - 0x10b8]
test edx, edx
je 0x4dc674
mov byte [edx], 0
test eax, eax
je 0x4dc68e
mov dword [eax + 0x10], 0
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x4dc689
mov edx, dword [eax]
xor eax, eax
mov word [edx], ax
test esi, esi
je 0x4dc6a8
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4dc6a3
mov eax, dword [esi]
xor edx, edx
mov word [eax], dx
test ecx, ecx
je 0x4dc6c2
mov dword [ecx + 0x10], 0
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x4dc6bd
mov eax, dword [ecx]
xor ecx, ecx
mov word [eax], cx
cmp dword [edi + 0x10], 0
je 0x4dcdb4
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4dc6d6
mov eax, dword [edi]
push 3
push eax
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
cmp dword [edi + 0x14], 8
mov ebx, eax
mov dword [ebp - 0x10a4], ebx
mov ecx, edi
jb 0x4dc6f1
mov ecx, dword [edi]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
jne 0x4dc733
test ebx, ebx
jne 0x4dc733
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4dc70a
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4dcdb4
push 7
push str.file:__
push 0
mov ecx, edi
call fcn.004288c0
mov dword [ebp - 0x10a4], 1
push esi
push edi
call fcn.004dfb90
mov ebx, eax
add esp, 8
mov dword [ebp - 0x10b4], ebx
cmp ebx, 1
je 0x4dc758
cmp ebx, 4
je 0x4dc758
cmp ebx, 2
jne 0x4dcdb4
cmp dword [ebp - 0x10a4], 0
mov esi, 2
je 0x4dca88
push 0x1048
lea eax, [ebp - 0x1058]
push 0
push eax
call fcn.0053f340
add esp, 0xc
mov dword [ebp - 0x1074], 0x824
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4dc794
mov eax, dword [edi]
push 0
lea ecx, [ebp - 0x1074]
push ecx
lea ecx, [ebp - 0x1058]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
jne 0x4dcdb4
cmp dword [ebp - 0x1074], eax
je 0x4dcdb4
push str.file:__
mov ecx, edi
call fcn.0040e5e0
lea eax, [ebp - 0x1058]
mov ecx, edi
push eax
call fcn.0042ef80
mov eax, dword [edi + 0x10]
xor ecx, ecx
push 0x5f42f8
lea eax, [eax + eax*2]
mov dword [ebp - 0x1090], eax
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041bedf
mov esi, eax
add esp, 8
mov dword [ebp - 0x10c0], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4dcbbe
mov eax, dword [ebp - 0x1090]
add eax, eax
push eax
push 0
push esi
call fcn.0053f340
add esp, 0xc
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4dc833
mov eax, dword [edi]
push 0x20001000
lea ecx, [ebp - 0x1090]
push ecx
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_UrlCanonicalizeW]
test eax, eax
jne 0x4dcbbe
push esi
mov ecx, edi
call fcn.0040e5e0
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 - 0x10c4]
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x10b0], ecx
test eax, eax
je 0x4dc88e
mov byte [eax], cl
lea eax, [ebp - 0x1058]
push eax
lea ecx, [ebp - 0x1070]
call fcn.0040e610
push 0
lea eax, [ebp - 0x1070]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.0042bb50
add esp, 0xc
test al, al
je 0x4dcba1
mov edx, dword [ebp - 0x10a8]
test edx, edx
je 0x4dc902
mov eax, dword [ebp - 0x10b0]
lea ecx, [ebp - 0x1070]
cmp dword [ebp - 0x105c], 8
push 0
cmovae ecx, dword [ebp - 0x1070]
push 0
movzx eax, al
push eax
lea eax, [ebp - 0x1070]
push eax
push ecx
mov ecx, edx
call fcn.0049bbe0
test al, al
je 0x4dcba1
cmp dword [ebp - 0x1060], 0
jbe 0x4dcba1
mov eax, dword [ebp - 0x109c]
test eax, eax
je 0x4dc91c
mov byte [eax], 1
mov ecx, dword [ebp - 0x10ac]
test ecx, ecx
je 0x4dc932
lea eax, [ebp - 0x1070]
push eax
call fcn.0042b100
cmp dword [ebp - 0x105c], 8
lea eax, [ebp - 0x1070]
cmovae eax, dword [ebp - 0x1070]
push eax
lea eax, [ebp - 0x108c]
push eax
call fcn.0049eef0
add esp, 8
cmp dword [ebp - 0x107c], 0
mov byte [ebp - 4], 2
je 0x4dca31
mov ecx, dword [ebp - 0x1098]
test ecx, ecx
je 0x4dc97d
lea eax, [ebp - 0x108c]
push eax
call fcn.0042b100
cmp dword [ebp - 0x1078], 8
lea eax, [ebp - 0x108c]
push 1
cmovae eax, dword [ebp - 0x108c]
push eax
call fcn.004df460
add esp, 8
test al, al
jne 0x4dca3a
lea eax, [ebp - 0x108c]
push str..pdf
push eax
call fcn.00429c00
add esp, 8
test al, al
jne 0x4dca04
lea eax, [ebp - 0x108c]
push str..fdf
push eax
call fcn.00429c00
add esp, 8
test al, al
jne 0x4dca04
lea eax, [ebp - 0x108c]
push str..xfdf
push eax
call fcn.00429c00
add esp, 8
test al, al
jne 0x4dca04
lea eax, [ebp - 0x108c]
push str..xdp
push eax
call fcn.00429c00
add esp, 8
test al, al
je 0x4dca62
cmp ebx, 2
jne 0x4dca62
lea ecx, [ebp - 0x108c]
mov bl, 1
call fcn.0040a280
lea ecx, [ebp - 0x1070]
call fcn.0040a280
push esi
call fcn.0041c2b1
add esp, 4
mov al, bl
jmp 0x4dcdb6
cmp byte [ebp - 0x10b0], 0
jne 0x4dca62
lea ecx, [ebp - 0x108c]
xor bl, bl
call fcn.0040a280
lea ecx, [ebp - 0x1070]
call fcn.0040a280
push esi
call fcn.0041c2b1
add esp, 4
mov al, bl
jmp 0x4dcdb6
lea ecx, [ebp - 0x108c]
call fcn.0040a280
lea ecx, [ebp - 0x1070]
call fcn.0040a280
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.0041c2b1
add esp, 4
cmp ebx, 2
jne 0x4dcd55
call fcn.004dee20
cmp byte [0x5f17f0], 0
mov dword [ebp - 0x10a8], eax
jne 0x4dcb88
mov ecx, eax
call fcn.004defc0
push 0
lea eax, [ebp - 0x1070]
push edi
push eax
call fcn.0043c380
mov ecx, eax
call fcn.004dda80
cmp dword [ebp - 0x105c], 8
lea eax, [ebp - 0x1070]
mov edx, dword [ebp - 0x1070]
lea ecx, [ebp - 0x1070]
cmovae eax, edx
mov dword [ebp - 4], 3
mov dword [ebp - 0x1098], eax
lea ebx, [ebp - 0x1070]
mov eax, dword [ebp - 0x1060]
cmovae ecx, edx
cmovae ebx, edx
lea eax, [ecx + eax*2]
cmp ebx, eax
je 0x4dcb2f
mov esi, dword [ebp - 0x1098]
mov edi, eax
sub esi, ebx
movzx eax, word [ebx]
push eax
call fcn.0040b320
mov word [esi + ebx], ax
add esp, 4
add ebx, 2
cmp ebx, edi
jne 0x4dcb12
mov edi, dword [ebp - 0x10a0]
mov ebx, dword [ebp - 0x10a8]
lea eax, [ebp - 0x1070]
push eax
lea eax, [ebp - 0x10c0]
mov esi, dword [ebx + 0x2c]
push esi
push dword [ebx + 0x28]
push eax
call fcn.0042d860
add esp, 0x10
cmp dword [eax], esi
je 0x4dcbd0
mov eax, dword [ebp - 0x105c]
mov dword [ebp - 4], 4
cmp eax, 8
jb 0x4dcb7b
inc eax
lea ecx, [ebp - 0x1070]
push eax
push dword [ebp - 0x1070]
call fcn.0040a2e0
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp - 0x10b4]
cmp dword [ebp - 0x10a4], 0
jne 0x4dcc09
cmp ebx, 2
jne 0x4dcdb4
mov al, 1
jmp 0x4dcdb6
lea ecx, [ebp - 0x1070]
xor bl, bl
call fcn.0040a280
push esi
call fcn.0041c2b1
add esp, 4
mov al, bl
jmp 0x4dcdb6
push esi
xor bl, bl
call fcn.0041c2b1
add esp, 4
mov al, bl
jmp 0x4dcdb6
cmp dword [ebp - 0x1060], 0
jne 0x4dccfd
mov eax, dword [ebp - 0x105c]
mov dword [ebp - 4], 5
cmp eax, 8
jb 0x4dcc02
inc eax
lea ecx, [ebp - 0x1070]
push eax
push dword [ebp - 0x1070]
call fcn.0040a2e0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x5f3910]
test ecx, ecx
je 0x4dcdb4
push 4
lea eax, [ebp - 0x108c]
push eax
call fcn.0049ac06
mov eax, dword [ebp - 0x107c]
xor ecx, ecx
mov ebx, dword [edi + 0x10]
inc eax
add ebx, eax
mov dword [ebp - 4], 7
mov eax, ebx
mov edx, 2
mul edx
push 0x5f42f8
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041bedf
mov esi, eax
add esp, 8
mov dword [ebp - 0x10c0], esi
mov byte [ebp - 4], 8
test esi, esi
je 0x4dcd9a
lea eax, [ebx + ebx]
push eax
push 0
push esi
call fcn.0053f340
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x4dcc83
mov edi, dword [edi]
cmp dword [ebp - 0x1078], 8
lea eax, [ebp - 0x108c]
push edi
cmovae eax, dword [ebp - 0x108c]
push eax
push ebx
push esi
call fcn.0040eae0
add esp, 0x10
test eax, eax
jne 0x4dcd9a
mov eax, dword [ebp - 0x10b8]
test eax, eax
je 0x4dccb8
mov byte [eax], 1
mov ecx, dword [0x5f3910]
test ecx, ecx
je 0x4dcd6c
push 3
lea eax, [ebp - 0x10dc]
push eax
call fcn.0049ac06
mov edi, eax
mov dword [ebp - 0x10bc], 1
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 9
jb 0x4dccec
mov edi, dword [edi]
mov ecx, dword [0x5f3910]
test ecx, ecx
je 0x4dcd71
call fcn.004d0f00
jmp 0x4dcd73
mov esi, dword [ebx + 0x20]
lea eax, [ebp - 0x1070]
push eax
push esi
push dword [ebx + 0x1c]
lea eax, [ebp - 0x1098]
push eax
call fcn.0042d860
add esp, 0x10
mov ebx, dword [eax]
mov eax, dword [ebp - 0x105c]
mov dword [ebp - 4], 6
cmp eax, 8
jb 0x4dcd41
inc eax
lea ecx, [ebp - 0x1070]
push eax
push dword [ebp - 0x1070]
call fcn.0040a2e0
mov dword [ebp - 4], 0xffffffff
cmp ebx, esi
je 0x4dcb82
jmp 0x4dcc09
cmp ebx, 1
je 0x4dcc09
cmp ebx, 4
je 0x4dcc09
jmp 0x4dcb88
mov edi, 0x586454
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 0x4dcd9c
lea ecx, [ebp - 0x10dc]
call fcn.0040a280
jmp 0x4dcd9c
xor bl, bl
push esi
call fcn.0041c2b1
add esp, 4
lea ecx, [ebp - 0x108c]
call fcn.0040a280
mov al, bl
jmp 0x4dcdb6
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.00401682
mov esp, ebp
pop ebp
ret