Function at 0x40ea37
Capabilities:
Check if file exists

Disassembly:
push 0x7c
mov eax, 0x421d64
call fcn.0041f5b2
and dword [ebp - 0x18], 0
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
call fcn.00401825
lea ecx, [ebp - 0x88]
push ecx
mov esi, eax
call fcn.00404369
cmp dword [ebp - 0x88], 0
je 0x40ea75
cmp dword [ebp - 0x88], ebx
je 0x40ea75
xor esi, esi
jmp 0x40ea77
mov esi, ebx
lea edi, [ebp - 0x88]
call fcn.00404430
test esi, esi
jne 0x40eab4
push str.CMD3
push 0x426484
call fcn.0041524e
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004016af
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.004016af
mov eax, ebx
jmp 0x40eca7
mov eax, dword [0x432bb0]
mov esi, 0x432bb0
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 0x4276d8
push eax
call fcn.00405c2c
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
add esp, 0xc
cmp dword [edi - 0xc], 0
jne 0x40eb3a
cmp dword [ebx - 0xc], 0
je 0x40eb0a
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x40eb3a
cmp dword [ebp + 0x14], 0
jne 0x40eb3a
lea eax, [ebp - 0x20]
push 0x167
push eax
call fcn.004010c5
call fcn.00403ad7
push dword [eax]
mov dword [ebp - 0x18], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 0xd], 1
je 0x40eb3e
mov byte [ebp - 0xd], 0
test byte [ebp - 0x18], 1
je 0x40eb4f
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004016af
cmp byte [ebp - 0xd], 0
je 0x40eb89
push 0x429d08
push 0x426484
call fcn.0041524e
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004016af
lea eax, [edi - 0x10]
call fcn.004016af
lea eax, [ebx - 0x10]
call fcn.004016af
xor eax, eax
inc eax
jmp 0x40eca7
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.004052d7
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.004052d7
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
call fcn.0040d315
lea eax, [ebp - 0x1c]
push eax
call fcn.0040e58b
mov byte [ebp - 4], 4
mov eax, dword [0x432bb0]
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.00405c40
add esp, 0x10
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
xor edi, edi
call fcn.0040c559
test eax, eax
mov esi, dword [ebp + 0x14]
je 0x40ec66
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 0x40ec43
push 0x429d38
jmp 0x40ec48
push 0x429d4c
push 0x426484
call fcn.0041524e
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 0x40ec77
push 0x429d60
push 0x426484
call fcn.0041524e
pop ecx
pop ecx
lea eax, [esi - 0x10]
call fcn.004016af
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004016af
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004016af
mov eax, dword [ebp - 0x18]
call fcn.004016af
mov eax, dword [ebp - 0x24]
call fcn.004016af
mov eax, edi
call fcn.0041f68a
ret 0x10