Function at 0x43deb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588f76
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x288], ecx
mov dword [ebp - 4], 0
call fcn.00402270
mov dword [ebp - 0x254], eax
lea ecx, [ebp + 8]
call fcn.00406290
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x43df10
mov dword [ebp - 0x28c], 0
jmp 0x43df74
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3fffffff
jle 0x43df35
mov dword [ebp - 0x290], 0
jmp 0x43df68
mov eax, dword [ebp - 0x14]
shl eax, 1
call fcn.00570840
mov dword [ebp - 0x294], esp
mov ecx, dword [ebp - 0x254]
push ecx
mov edx, dword [ebp - 0x14]
shl edx, 1
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x294]
push ecx
call fcn.004022d0
mov dword [ebp - 0x290], eax
mov edx, dword [ebp - 0x290]
mov dword [ebp - 0x28c], edx
mov eax, dword [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x274]
call fcn.00406050
mov byte [ebp - 4], 1
push 9
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x278], esp
lea edx, [ebp - 0x274]
push edx
call fcn.00406090
mov dword [ebp - 0x298], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004170a0
add esp, 0x24
mov dword [ebp - 0x29c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.004061b0
push eax
lea ecx, [ebp - 0x3c]
call fcn.00406190
push eax
lea ecx, [ebp - 0x250]
call fcn.0043fd30
mov byte [ebp - 4], 3
push 0x103
lea ecx, [ebp - 0x24c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x1c], 0
je 0x43e02d
cmp dword [ebp - 0x18], 0x7a
je 0x43e02d
lea edx, [ebp - 0x24c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x5f5ecc
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x43e058
push 0x208
lea ecx, [ebp - 0x24c]
push ecx
call fcn.004020c0
add esp, 8
push 0x103
push 0x5f5ef0
lea edx, [ebp - 0x24c]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43e0b7
mov dword [ebp - 0x27c], 9
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
call fcn.0042ecc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.004060d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.004060d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406270
mov eax, dword [ebp - 0x27c]
jmp 0x43e1f7
push str.admin
lea ecx, [ebp - 0x40]
call fcn.0043fcb0
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x40]
call fcn.004027c0
push eax
push str.username
push 0x5f5f34
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea edx, [ebp - 0x24c]
push edx
lea ecx, [ebp - 0x250]
call fcn.004027c0
push eax
push str.password
push str.login_conf
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
je 0x43e163
mov dword [ebp - 0x280], 0
lea ecx, [ebp - 0x40]
call fcn.0042ecc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
call fcn.0042ecc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.004060d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.004060d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406270
mov eax, dword [ebp - 0x280]
jmp 0x43e1f7
mov dword [ebp - 0x284], 9
lea ecx, [ebp - 0x40]
call fcn.0042ecc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
call fcn.0042ecc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.004060d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.004060d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406270
mov eax, dword [ebp - 0x284]
jmp 0x43e1f7
lea esp, [ebp - 0x2a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret 0x1c