Function at 0x410303
Capabilities:
Check if file exists

Disassembly:
push 0x7c
mov eax, 0x4243d1
call fcn.00421cd2
and dword [ebp - 0x18], 0
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
call fcn.004017f5
lea ecx, [ebp - 0x88]
push ecx
mov esi, eax
call fcn.00404538
cmp dword [ebp - 0x88], 0
je 0x410341
cmp dword [ebp - 0x88], ebx
je 0x410341
xor esi, esi
jmp 0x410343
mov esi, ebx
lea edi, [ebp - 0x88]
call fcn.004045ff
test esi, esi
jne 0x410380
push str.CMD3
push 0x4294a4
call fcn.00417869
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040167f
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.0040167f
mov eax, ebx
jmp 0x410573
mov eax, dword [0x435bb0]
mov esi, 0x435bb0
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 0x42a728
push eax
call fcn.00405c2a
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
add esp, 0xc
cmp dword [edi - 0xc], 0
jne 0x410406
cmp dword [ebx - 0xc], 0
je 0x4103d6
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x410406
cmp dword [ebp + 0x14], 0
jne 0x410406
lea eax, [ebp - 0x20]
push 0x167
push eax
call fcn.004010c5
call fcn.00403cb5
push dword [eax]
mov dword [ebp - 0x18], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 0xd], 1
je 0x41040a
mov byte [ebp - 0xd], 0
test byte [ebp - 0x18], 1
je 0x41041b
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040167f
cmp byte [ebp - 0xd], 0
je 0x410455
push 0x42cf58
push 0x4294a4
call fcn.00417869
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040167f
lea eax, [edi - 0x10]
call fcn.0040167f
lea eax, [ebx - 0x10]
call fcn.0040167f
xor eax, eax
inc eax
jmp 0x410573
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.00405607
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.00405607
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
call fcn.0040ebe0
lea eax, [ebp - 0x1c]
push eax
call fcn.0040fe57
mov byte [ebp - 4], 4
mov eax, dword [0x435bb0]
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.00405c3e
add esp, 0x10
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
xor edi, edi
call fcn.0040de1b
test eax, eax
mov esi, dword [ebp + 0x14]
je 0x410532
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 0x41050f
push 0x42cf88
jmp 0x410514
push 0x42cf9c
push 0x4294a4
call fcn.00417869
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 0x410543
push 0x42cfb0
push 0x4294a4
call fcn.00417869
pop ecx
pop ecx
lea eax, [esi - 0x10]
call fcn.0040167f
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040167f
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040167f
mov eax, dword [ebp - 0x18]
call fcn.0040167f
mov eax, dword [ebp - 0x24]
call fcn.0040167f
mov eax, edi
call fcn.00421daa
ret 0x10