Function at 0x405a01
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
call fcn.0040205e
mov dword [ebp - 8], eax
push str..exe
push dword [ebp - 8]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405a48
push ebx
call fcn.0044dbce
add esp, 4
lea eax, [ebp - 0x1c]
push eax
push 1
push 0
push dword [ebp - 0xc]
mov eax, 0
call fcn.00450be0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405a76
push ebx
call fcn.0044dbce
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x405a8a
push ebx
call fcn.0044dbce
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x499305
push dword [ebp - 4]
call fcn.00401096
add esp, 8
cmp eax, 0
je 0x405baa
push 0
mov ebx, 0x108
call fcn.0044e520
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00401096
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405ae9
push ebx
call fcn.0044dbce
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x405b70
push 0x4b1ea2
push dword [ebp - 4]
call fcn.00401096
add esp, 8
cmp eax, 0
je 0x405b70
call fcn.0040205e
mov dword [ebp - 8], eax
push dword [ebp - 4]
push dword [ebp - 8]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405b3a
push ebx
call fcn.0044dbce
add esp, 4
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x405b4d
mov eax, 0x499305
push eax
push 1
mov ebx, 0x244
call fcn.0044e320
add esp, 0x10
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405b70
push ebx
call fcn.0044dbce
add esp, 4
lea eax, [ebp - 0x1c]
push eax
push 1
push 0
push 0
mov eax, 0
call fcn.00450be0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x405ba1
push ebx
call fcn.0044dbce
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x405a8e
call fcn.0040205e
mov dword [ebp - 8], eax
push str.TQATTQAT.exe
push dword [ebp - 8]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405bda
push ebx
call fcn.0044dbce
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405bfc
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405c0f
push ebx
call fcn.0044dbce
add esp, 4
cmp dword [ebp - 0x14], 1
jne 0x405c7f
call fcn.0040205e
mov dword [ebp - 8], eax
push str.TQATTQAT.exe
push dword [ebp - 8]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405c49
push ebx
call fcn.0044dbce
add esp, 4
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x405c5c
mov eax, 0x499305
push eax
push 1
mov ebx, 0x244
call fcn.0044e320
add esp, 0x10
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405c7f
push ebx
call fcn.0044dbce
add esp, 4
call fcn.0040205e
mov dword [ebp - 8], eax
push str.TQATTQCheckTool.exe
push dword [ebp - 8]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405caf
push ebx
call fcn.0044dbce
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405cd1
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405ce4
push ebx
call fcn.0044dbce
add esp, 4
cmp dword [ebp - 0x14], 1
jne 0x405d54
call fcn.0040205e
mov dword [ebp - 8], eax
push str.TQATTQCheckTool.exe
push dword [ebp - 8]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405d1e
push ebx
call fcn.0044dbce
add esp, 4
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x405d31
mov eax, 0x499305
push eax
push 1
mov ebx, 0x244
call fcn.0044e320
add esp, 0x10
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405d54
push ebx
call fcn.0044dbce
add esp, 4
push dword [ebp - 0x1c]
mov eax, 1
call fcn.00450d30
add esp, 4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x405d74
push ebx
call fcn.0044dbce
add esp, 4
mov esp, ebp
pop ebp
ret