Function at 0x43d670
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a62b
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x61b000]
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.00408070
mov dword [ebp - 0x2ec], eax
lea ecx, [ebp - 0x5c]
push ecx
call fcn.00417260
add esp, 0x20
mov dword [ebp - 0x2f0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00406190
push eax
call fcn.00409b70
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x43d712
mov dword [ebp - 0x288], 3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.004060d0
mov eax, dword [ebp - 0x288]
jmp 0x43da37
push 0x5f5ddc
mov edx, dword [ebp - 0x20]
push edx
call fcn.0040b010
add esp, 8
mov dword [ebp - 0x18], eax
push 0x5f5de0
mov eax, dword [ebp - 0x20]
push eax
call fcn.0040b010
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], 0
je 0x43d746
cmp dword [ebp - 0x1c], 0
jne 0x43d776
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00408a10
add esp, 4
mov dword [ebp - 0x28c], 3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.004060d0
mov eax, dword [ebp - 0x28c]
jmp 0x43da37
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x10]
push eax
lea ecx, [ebp - 0x40]
call fcn.00406050
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
push edx
lea ecx, [ebp - 0x280]
call fcn.00406050
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
push eax
call fcn.00408a10
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 0x43d7f8
cmp dword [ebp - 0x10], 0x7a
je 0x43d7f8
lea edx, [ebp - 0x264]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x5f5de8
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x43d823
push 0x208
lea ecx, [ebp - 0x264]
push ecx
call fcn.004020c0
add esp, 8
push 0x103
push 0x5f5e0c
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 0x43d873
mov dword [ebp - 0x290], 9
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.004060d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004060d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.004060d0
mov eax, dword [ebp - 0x290]
jmp 0x43da37
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00406190
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x298], esp
push eax
call fcn.00406050
mov dword [ebp - 0x2f4], eax
lea edx, [ebp - 0x2b4]
push edx
call fcn.00417170
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.00406290
push eax
push str.ipaddr
push 0x5f5e44
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.00406270
movzx ecx, byte [ebp - 0x291]
test ecx, ecx
je 0x43d938
mov dword [ebp - 0x2b8], 9
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.004060d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004060d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.004060d0
mov eax, dword [ebp - 0x2b8]
jmp 0x43da37
lea edx, [ebp - 0x264]
push edx
lea ecx, [ebp - 0x280]
call fcn.00406190
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2c0], esp
push eax
call fcn.00406050
mov dword [ebp - 0x300], eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.00417170
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.00406290
push eax
push str.port
push 0x5f5e68
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.00406270
movzx edx, byte [ebp - 0x2b9]
test edx, edx
je 0x43d9fd
mov dword [ebp - 0x2e0], 9
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.004060d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004060d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.004060d0
mov eax, dword [ebp - 0x2e0]
jmp 0x43da37
mov dword [ebp - 0x2e4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.004060d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004060d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.004060d0
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.00560c61
mov esp, ebp
pop ebp
ret 4