Function at 0x40ea16
Capabilities:
Check if file exists

Disassembly:
push 0x7c
mov eax, 0x421d97
call fcn.0041f5c2
and dword [ebp - 0x18], 0
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
call fcn.0040181a
lea ecx, [ebp - 0x88]
push ecx
mov esi, eax
call fcn.0040438f
cmp dword [ebp - 0x88], 0
je 0x40ea54
cmp dword [ebp - 0x88], ebx
je 0x40ea54
xor esi, esi
jmp 0x40ea56
mov esi, ebx
lea edi, [ebp - 0x88]
call fcn.00404456
test esi, esi
jne 0x40ea93
push str.CMD3
push 0x427484
call fcn.004151bb
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004016a4
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.004016a4
mov eax, ebx
jmp 0x40ec86
mov eax, dword [0x433bb0]
mov esi, 0x433bb0
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
call fcn.004010c5
mov eax, dword [eax]
push dword [eax + 0x1c]
lea eax, [ebp - 0x14]
push 0x4286d8
push eax
call fcn.00405c6b
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
add esp, 0xc
cmp dword [edi - 0xc], 0
jne 0x40eb19
cmp dword [ebx - 0xc], 0
je 0x40eae9
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x40eb19
cmp dword [ebp + 0x14], 0
jne 0x40eb19
lea eax, [ebp - 0x20]
push 0x167
push eax
call fcn.004010c5
call fcn.00403b0f
push dword [eax]
mov dword [ebp - 0x18], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 0xd], 1
je 0x40eb1d
mov byte [ebp - 0xd], 0
test byte [ebp - 0x18], 1
je 0x40eb2e
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004016a4
cmp byte [ebp - 0xd], 0
je 0x40eb68
push 0x42ad08
push 0x427484
call fcn.004151bb
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004016a4
lea eax, [edi - 0x10]
call fcn.004016a4
lea eax, [ebx - 0x10]
call fcn.004016a4
xor eax, eax
inc eax
jmp 0x40ec86
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
push ecx
lea eax, [ebx - 0x10]
mov dword [ebp - 0x28], esp
mov dword [ebp + 0x14], esp
mov dword [ebp - 0x24], eax
call fcn.00405332
add eax, 0x10
mov ecx, esp
mov dword [ecx], eax
push ecx
add edi, 0xfffffff0
mov byte [ebp - 4], 3
mov eax, edi
mov dword [ebp + 0x14], esp
mov ebx, esp
mov dword [ebp - 0x18], edi
call fcn.00405332
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
call fcn.0040d2f4
lea eax, [ebp - 0x1c]
push eax
call fcn.0040e56a
mov byte [ebp - 4], 4
mov eax, dword [0x433bb0]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 5
push dword [ebp - 0x1c]
lea eax, [ebp + 0x14]
push 1
push str.Key_dData_s
push eax
call fcn.00405c7f
add esp, 0x10
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
xor edi, edi
call fcn.0040c538
test eax, eax
mov esi, dword [ebp + 0x14]
je 0x40ec45
push dword [esi - 0xc]
push esi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov edi, eax
test edi, edi
jne 0x40ec22
push 0x42ad38
jmp 0x40ec27
push 0x42ad4c
push 0x427484
call fcn.004151bb
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ecx
pop ecx
push dword [ebp - 0x20]
call ebx
push dword [ebp + 8]
call ebx
jmp 0x40ec56
push 0x42ad60
push 0x427484
call fcn.004151bb
pop ecx
pop ecx
lea eax, [esi - 0x10]
call fcn.004016a4
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004016a4
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004016a4
mov eax, dword [ebp - 0x18]
call fcn.004016a4
mov eax, dword [ebp - 0x24]
call fcn.004016a4
mov eax, edi
call fcn.0041f69a
ret 0x10