Function at 0x40731d
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb64
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
add edi, 4
xor ebx, ebx
mov esi, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
call fcn.00410c77
test eax, eax
je 0x40764a
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 + 0x10]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x40738f
lea ecx, [ebp - 0x110]
push ecx
call eax
pop ecx
jmp 0x407392
or eax, 0xffffffff
cmp eax, ebx
jne 0x407641
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 + 0x10]
call sub.msvcrt.dll_wcslen
mov edi, eax
mov dword [esp], 0x44a320
call sub.msvcrt.dll_wcslen
lea eax, [edi + eax + 1]
cmp eax, esi
pop ecx
jae 0x40744d
push 0x44a320
push dword [ebp + 0x10]
lea eax, [ebp - 0x530]
call fcn.00407c91
pop ecx
pop ecx
jmp 0x407454
mov word [ebp - 0x530], bx
push dword [ebp + 0x10]
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 0x40748a
push str.signons2.txt
push dword [ebp + 0x10]
lea eax, [ebp - 0x740]
call fcn.00407c91
pop ecx
pop ecx
jmp 0x407491
mov word [ebp - 0x740], bx
push dword [ebp + 0x10]
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 0x4074c7
push str.signons3.txt
push dword [ebp + 0x10]
lea eax, [ebp - 0xb60]
call fcn.00407c91
pop ecx
pop ecx
jmp 0x4074ce
mov word [ebp - 0xb60], bx
push dword [ebp + 0x10]
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 0x407504
push str.signons.sqlite
push dword [ebp + 0x10]
lea eax, [ebp - 0x950]
call fcn.00407c91
pop ecx
pop ecx
jmp 0x40750b
mov word [ebp - 0x950], bx
push dword [ebp + 0x10]
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 0x407541
push str.logins.json
push dword [ebp + 0x10]
lea eax, [ebp - 0x320]
call fcn.00407c91
pop ecx
pop ecx
jmp 0x407548
mov word [ebp - 0x320], bx
lea eax, [ebp - 0x320]
push eax
xor esi, esi
call fcn.00407b0b
test eax, eax
pop ecx
je 0x407572
lea eax, [ebp - 0x320]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406af8
jmp 0x407620
lea eax, [ebp - 0x950]
push eax
call fcn.00407b0b
test eax, eax
pop ecx
je 0x40759d
push dword [ebp + 0x14]
lea eax, [ebp - 0x950]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406dd9
jmp 0x407620
lea eax, [ebp - 0x530]
push eax
call fcn.00407b0b
test eax, eax
pop ecx
je 0x4075c5
push 0xa
lea eax, [ebp - 0x530]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
inc esi
call fcn.004070c3
lea eax, [ebp - 0x740]
push eax
call fcn.00407b0b
test eax, eax
pop ecx
je 0x4075ed
push 0x14
lea eax, [ebp - 0x740]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
inc esi
call fcn.004070c3
lea eax, [ebp - 0xb60]
push eax
call fcn.00407b0b
test eax, eax
pop ecx
je 0x407615
push 0x1e
lea eax, [ebp - 0xb60]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
inc esi
call fcn.004070c3
cmp esi, ebx
jne 0x407620
mov dword [ebp - 4], 3
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x40762c
call eax
mov edi, dword [ebp - 8]
cmp dword [edi], ebx
je 0x407651
lea eax, [edi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [edi], ebx
jmp 0x407651
mov dword [ebp - 4], 2
jmp 0x40762f
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10