Function at 0x43ce90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582ca6
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x615000]
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.00406110
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x43cef0
mov dword [ebp - 0x28c], 0
jmp 0x43cf54
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 0x43cf15
mov dword [ebp - 0x290], 0
jmp 0x43cf48
mov eax, dword [ebp - 0x14]
shl eax, 1
call fcn.0056a8e0
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.00405ef0
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.00405f30
mov dword [ebp - 0x298], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00417a80
add esp, 0x24
mov dword [ebp - 0x29c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.00459160
push eax
lea ecx, [ebp - 0x3c]
call fcn.00406030
push eax
lea ecx, [ebp - 0x250]
call fcn.0043d5c0
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 0x43d00d
cmp dword [ebp - 0x18], 0x7a
je 0x43d00d
lea edx, [ebp - 0x24c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x5f01f0
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x43d038
push 0x208
lea ecx, [ebp - 0x24c]
push ecx
call fcn.004020c0
add esp, 8
push 0x103
push 0x5f0214
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 0x43d097
mov dword [ebp - 0x27c], 9
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
call fcn.0042e5a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00405f70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.00405f70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004060f0
mov eax, dword [ebp - 0x27c]
jmp 0x43d1d7
push str.admin
lea ecx, [ebp - 0x40]
call fcn.0043d540
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x40]
call fcn.004027c0
push eax
push str.username
push 0x5f0258
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 0x43d143
mov dword [ebp - 0x280], 0
lea ecx, [ebp - 0x40]
call fcn.0042e5a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
call fcn.0042e5a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00405f70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.00405f70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004060f0
mov eax, dword [ebp - 0x280]
jmp 0x43d1d7
mov dword [ebp - 0x284], 9
lea ecx, [ebp - 0x40]
call fcn.0042e5a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
call fcn.0042e5a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00405f70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.00405f70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004060f0
mov eax, dword [ebp - 0x284]
jmp 0x43d1d7
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.0055abea
mov esp, ebp
pop ebp
ret 0x1c