Function at 0x40e0d7
Capabilities:
Check if file exists

Disassembly:
push 0x7c
mov eax, 0x4214e4
call fcn.0041ee92
and dword [ebp - 0x18], 0
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
call fcn.004017ff
lea ecx, [ebp - 0x88]
push ecx
mov esi, eax
call fcn.0040433b
cmp dword [ebp - 0x88], 0
je 0x40e115
cmp dword [ebp - 0x88], ebx
je 0x40e115
xor esi, esi
jmp 0x40e117
mov esi, ebx
lea edi, [ebp - 0x88]
call fcn.00404402
test esi, esi
jne 0x40e154
push str.CMD3
push 0x426474
call fcn.00414b27
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
add eax, 0xfffffff0
call main
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call main
mov eax, ebx
jmp 0x40e347
mov eax, dword [0x432b20]
mov esi, 0x432b20
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 0x4276c8
push eax
call fcn.004058e5
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
add esp, 0xc
cmp dword [edi - 0xc], 0
jne 0x40e1da
cmp dword [ebx - 0xc], 0
je 0x40e1aa
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x40e1da
cmp dword [ebp + 0x14], 0
jne 0x40e1da
lea eax, [ebp - 0x20]
push 0x167
push eax
call fcn.004010c5
call fcn.00403aa9
push dword [eax]
mov dword [ebp - 0x18], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 0xd], 1
je 0x40e1de
mov byte [ebp - 0xd], 0
test byte [ebp - 0x18], 1
je 0x40e1ef
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call main
cmp byte [ebp - 0xd], 0
je 0x40e229
push 0x4299b0
push 0x426474
call fcn.00414b27
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
add eax, 0xfffffff0
call main
lea eax, [edi - 0x10]
call main
lea eax, [ebx - 0x10]
call main
xor eax, eax
inc eax
jmp 0x40e347
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.004052e9
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.004052e9
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
call fcn.0040cde4
lea eax, [ebp - 0x1c]
push eax
call fcn.0040dc30
mov byte [ebp - 4], 4
mov eax, dword [0x432b20]
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.004058f9
add esp, 0x10
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
xor edi, edi
call fcn.0040c0bc
test eax, eax
mov esi, dword [ebp + 0x14]
je 0x40e306
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 0x40e2e3
push 0x4299e0
jmp 0x40e2e8
push 0x4299f4
push 0x426474
call fcn.00414b27
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 0x40e317
push 0x429a08
push 0x426474
call fcn.00414b27
pop ecx
pop ecx
lea eax, [esi - 0x10]
call main
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call main
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call main
mov eax, dword [ebp - 0x18]
call main
mov eax, dword [ebp - 0x24]
call main
mov eax, edi
call fcn.0041ef6a
ret 0x10