Function at 0x43c650
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5841fb
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2e8], ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x284], esp
mov eax, dword [ebp + 8]
push eax
call fcn.00407f00
mov dword [ebp - 0x2ec], eax
lea ecx, [ebp - 0x5c]
push ecx
call fcn.00417c40
add esp, 0x20
mov dword [ebp - 0x2f0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00406030
push eax
call fcn.004099b0
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x43c6f2
mov dword [ebp - 0x288], 3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00405f70
mov eax, dword [ebp - 0x288]
jmp 0x43ca17
push 0x5f0100
mov edx, dword [ebp - 0x20]
push edx
call fcn.0040ae50
add esp, 8
mov dword [ebp - 0x18], eax
push 0x5f0104
mov eax, dword [ebp - 0x20]
push eax
call fcn.0040ae50
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], 0
je 0x43c726
cmp dword [ebp - 0x1c], 0
jne 0x43c756
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00408860
add esp, 4
mov dword [ebp - 0x28c], 3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00405f70
mov eax, dword [ebp - 0x28c]
jmp 0x43ca17
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x10]
push eax
lea ecx, [ebp - 0x40]
call fcn.00405ef0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
push edx
lea ecx, [ebp - 0x280]
call fcn.00405ef0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
push eax
call fcn.00408860
add esp, 4
push 0x103
lea ecx, [ebp - 0x264]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x14], 0
je 0x43c7d8
cmp dword [ebp - 0x10], 0x7a
je 0x43c7d8
lea edx, [ebp - 0x264]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x5f010c
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x43c803
push 0x208
lea ecx, [ebp - 0x264]
push ecx
call fcn.004020c0
add esp, 8
push 0x103
push 0x5f0130
lea edx, [ebp - 0x264]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43c853
mov dword [ebp - 0x290], 9
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.00405f70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00405f70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00405f70
mov eax, dword [ebp - 0x290]
jmp 0x43ca17
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00406030
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x298], esp
push eax
call fcn.00405ef0
mov dword [ebp - 0x2f4], eax
lea edx, [ebp - 0x2b4]
push edx
call fcn.00417b50
add esp, 0x20
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x2fc], eax
mov ecx, dword [ebp - 0x2fc]
call fcn.00406110
push eax
push str.ipaddr
push 0x5f0168
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x291], al
lea ecx, [ebp - 0x2b4]
call fcn.004060f0
movzx ecx, byte [ebp - 0x291]
test ecx, ecx
je 0x43c918
mov dword [ebp - 0x2b8], 9
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.00405f70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00405f70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00405f70
mov eax, dword [ebp - 0x2b8]
jmp 0x43ca17
lea edx, [ebp - 0x264]
push edx
lea ecx, [ebp - 0x280]
call fcn.00406030
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2c0], esp
push eax
call fcn.00405ef0
mov dword [ebp - 0x300], eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.00417b50
add esp, 0x20
mov dword [ebp - 0x304], eax
mov ecx, dword [ebp - 0x304]
mov dword [ebp - 0x308], ecx
mov ecx, dword [ebp - 0x308]
call fcn.00406110
push eax
push str.port
push 0x5f018c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x2b9], al
lea ecx, [ebp - 0x2dc]
call fcn.004060f0
movzx edx, byte [ebp - 0x2b9]
test edx, edx
je 0x43c9dd
mov dword [ebp - 0x2e0], 9
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.00405f70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00405f70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00405f70
mov eax, dword [ebp - 0x2e0]
jmp 0x43ca17
mov dword [ebp - 0x2e4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.00405f70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00405f70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00405f70
mov eax, dword [ebp - 0x2e4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret 4