Function at 0x4220cb
Capabilities:
Get common file path
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x3f8]
push esi
push edi
push 9
mov dword [ebp - 0x17f0], ecx
lea edi, [ebp - 0x41c]
pop ecx
push 0x3c4
mov esi, str.sftpclientdbconnection_manager.db
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.006390b0
add esp, 0xc
push ebx
call fcn.00643470
pop ecx
cmp eax, 1
jae 0x422165
lea eax, [ebp - 0xbec]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x4223b1
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0xbec]
push eax
push 0x6c643c
lea eax, [ebp - 0x804]
push 0x3e8
push eax
call fcn.00402e0a
add esp, 0x14
jmp 0x42217c
push ebx
lea eax, [ebp - 0x804]
push 0x3e8
push eax
call fcn.006494f3
add esp, 0xc
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x17fc], eax
cmp eax, 0xffffffff
je 0x4223b1
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
mov dword [ebp - 0x17f8], ebx
test ebx, ebx
je 0x4223b1
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x17f4], eax
test eax, eax
jne 0x4221ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4223b7
mov esi, str._parent_:
mov dword [ebp - 0x10], 0x736f6822
lea edi, [ebp - 0x1c]
mov dword [ebp - 0xc], 0x3a2274
mov ebx, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, str._username_:
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, str._password_:
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x17f0]
xor eax, eax
mov byte [ebp - 0x17ec], al
mov byte [ebp - 0xfec], al
mov byte [ebp - 0x13ec], al
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.00639500
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x422385
lea eax, [ebp - 0x1c]
push eax
call fcn.00643470
add ebx, eax
lea eax, [ebp - 0x10]
pop ecx
push eax
push ebx
call fcn.00639500
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x422225
lea eax, [ebp - 0x10]
push eax
call fcn.00643470
pop ecx
push 0x2c
lea ebx, [esi + eax]
push ebx
call fcn.006393d0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x422225
sub eax, ebx
sub eax, 2
push eax
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x17ec]
push 0x400
push eax
call fcn.00650b7d
lea eax, [ebp - 0x28]
mov ebx, esi
push eax
push esi
call fcn.00639500
mov esi, eax
add esp, 0x18
test esi, esi
je 0x422225
lea eax, [ebp - 0x28]
push eax
call fcn.00643470
pop ecx
push 0x2c
lea ebx, [esi + eax]
push ebx
call fcn.006393d0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x422225
sub eax, ebx
sub eax, 2
push eax
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x13ec]
push 0x400
push eax
call fcn.00650b7d
lea eax, [ebp - 0x34]
mov ebx, esi
push eax
push esi
call fcn.00639500
mov esi, eax
add esp, 0x18
test esi, esi
je 0x422225
lea eax, [ebp - 0x34]
push eax
call fcn.00643470
pop ecx
push 0x2c
lea ebx, [esi + eax]
push ebx
call fcn.006393d0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x422225
sub eax, ebx
sub eax, 2
push eax
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0xfec]
push 0x400
push eax
call fcn.00650b7d
add esp, 0x10
lea eax, [ebp - 0xfec]
mov ebx, esi
mov ecx, edi
mov esi, 0x6c5bb9
push 0xffffffffffffffff
push esi
push eax
lea eax, [ebp - 0x13ec]
push eax
lea eax, [ebp - 0x17ec]
push eax
push esi
push 0x138
push 4
call fcn.0043ee6b
jmp 0x422225
push dword [ebp - 0x17f4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x17f8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebp - 0x17fc]
test eax, eax
je 0x4223ac
push eax
call esi
xor eax, eax
inc eax
jmp 0x4223b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret 4