Function at 0x405eea
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb60
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
add edi, 4
xor ebx, ebx
mov esi, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
call fcn.0040e9d6
test eax, eax
je 0x40620f
call fcn.004106f1
mov esi, 0x104
push esi
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x110]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x405f61
lea ecx, [ebp - 0x110]
push ecx
call eax
pop ecx
jmp 0x405f64
or eax, 0xffffffff
cmp eax, ebx
jne 0x406206
call fcn.004106f1
mov edi, 0x208
push edi
lea eax, [ebp - 0x52e]
push ebx
push eax
mov word [ebp - 0x530], bx
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x73e]
push ebx
push eax
mov word [ebp - 0x740], bx
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0xb5e]
push ebx
push eax
mov word [ebp - 0xb60], bx
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x94e]
push ebx
push eax
mov word [ebp - 0x950], bx
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x31e]
push ebx
push eax
mov word [ebp - 0x320], bx
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcslen
mov edi, eax
mov dword [esp], 0x444f44
call sub.msvcrt.dll_wcslen
lea eax, [edi + eax + 1]
cmp eax, esi
pop ecx
jae 0x406024
push 0x444f44
push dword [ebp + 0xc]
lea eax, [ebp - 0x530]
call fcn.0040679b
pop ecx
pop ecx
jmp 0x40602b
mov word [ebp - 0x530], bx
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcslen
mov edi, eax
mov dword [esp], str.signons2.txt
call sub.msvcrt.dll_wcslen
lea eax, [edi + eax + 1]
cmp eax, esi
pop ecx
jae 0x406061
push str.signons2.txt
push dword [ebp + 0xc]
lea eax, [ebp - 0x740]
call fcn.0040679b
pop ecx
pop ecx
jmp 0x406068
mov word [ebp - 0x740], bx
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcslen
mov edi, eax
mov dword [esp], str.signons3.txt
call sub.msvcrt.dll_wcslen
lea eax, [edi + eax + 1]
cmp eax, esi
pop ecx
jae 0x40609e
push str.signons3.txt
push dword [ebp + 0xc]
lea eax, [ebp - 0xb60]
call fcn.0040679b
pop ecx
pop ecx
jmp 0x4060a5
mov word [ebp - 0xb60], bx
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcslen
mov edi, eax
mov dword [esp], str.signons.sqlite
call sub.msvcrt.dll_wcslen
lea eax, [edi + eax + 1]
cmp eax, esi
pop ecx
jae 0x4060db
push str.signons.sqlite
push dword [ebp + 0xc]
lea eax, [ebp - 0x950]
call fcn.0040679b
pop ecx
pop ecx
jmp 0x4060e2
mov word [ebp - 0x950], bx
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcslen
mov edi, eax
mov dword [esp], str.logins.json
call sub.msvcrt.dll_wcslen
lea eax, [edi + eax + 1]
cmp eax, esi
pop ecx
jae 0x406118
push str.logins.json
push dword [ebp + 0xc]
lea eax, [ebp - 0x320]
call fcn.0040679b
pop ecx
pop ecx
jmp 0x40611f
mov word [ebp - 0x320], bx
lea eax, [ebp - 0x320]
push eax
xor esi, esi
call fcn.00406668
test eax, eax
pop ecx
je 0x406146
lea eax, [ebp - 0x320]
push eax
push dword [ebp + 8]
call fcn.004057f9
jmp 0x4061e5
lea eax, [ebp - 0x950]
push eax
call fcn.00406668
test eax, eax
pop ecx
je 0x40616b
push dword [ebp + 0x10]
lea eax, [ebp - 0x950]
push eax
push dword [ebp + 8]
call fcn.00405a59
jmp 0x4061e5
lea eax, [ebp - 0x530]
push eax
call fcn.00406668
test eax, eax
pop ecx
je 0x406190
push 0xa
lea eax, [ebp - 0x530]
push eax
push dword [ebp + 8]
xor esi, esi
inc esi
call fcn.00405c96
lea eax, [ebp - 0x740]
push eax
call fcn.00406668
test eax, eax
pop ecx
je 0x4061b5
push 0x14
lea eax, [ebp - 0x740]
push eax
push dword [ebp + 8]
xor esi, esi
inc esi
call fcn.00405c96
lea eax, [ebp - 0xb60]
push eax
call fcn.00406668
test eax, eax
pop ecx
je 0x4061da
push 0x1e
lea eax, [ebp - 0xb60]
push eax
push dword [ebp + 8]
xor esi, esi
inc esi
call fcn.00405c96
cmp esi, ebx
jne 0x4061e5
mov dword [ebp - 4], 3
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x4061f1
call eax
mov edi, dword [ebp - 8]
cmp dword [edi], ebx
je 0x406216
lea eax, [edi + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov dword [edi], ebx
jmp 0x406216
mov dword [ebp - 4], 2
jmp 0x4061f4
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc