Function at 0x402950
Capabilities:
Copy file
Delete file
Get common file path
Read .ini file
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x46d1a3
mov eax, dword fs:[0]
push eax
sub esp, 0xa20
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0xa1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x483390]
xor eax, esp
push eax
lea eax, [esp + 0xa34]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa48]
mov dword [esp + 0x20], eax
xor ebx, ebx
push 0x103
lea ecx, [esp + 0x131]
push ebx
mov dword [esp + 0xa44], ebx
push ecx
mov byte [esp + 0x138], bl
call fcn.00446e10
add esp, 0xc
lea edx, [esp + 0x12c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [0x4863c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4863c4
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x12c]
push eax
push str._slabel.dat.temp
lea edi, [esp + 0x1c]
mov byte [esp + 0xa44], 1
call fcn.004035e0
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0xa4c]
add esp, 8
push ebx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or ebp, 0xffffffff
cmp esi, ebp
jne 0x402a5e
add edi, 0xfffffff0
mov byte [esp + 0xa3c], bl
lea edx, [edi + 0xc]
mov eax, ebp
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x402c42
mov ecx, dword [edi]
push edi
jmp 0x402c3b
push 0x3ff
lea ecx, [esp + 0x235]
push ebx
push ecx
mov byte [esp + 0x23c], bl
call fcn.00446e10
add esp, 0xc
push ebx
lea edx, [esp + 0x1c]
push edx
push 0x400
lea eax, [esp + 0x23c]
push eax
push esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402c19
cmp dword [esp + 0x18], ebx
je 0x402c19
push 0x3ff
lea ecx, [esp + 0x635]
push ebx
push ecx
mov byte [esp + 0x63c], bl
call fcn.00446e10
lea edx, [esp + 0x63c]
push edx
lea eax, [esp + 0x240]
mov ecx, 0x400
call fcn.00423f20
mov ebp, eax
add esp, 0x10
cmp ebp, ebx
jg 0x402b3c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov byte [esp + 0xa3c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xa3c], 0xffffffff
mov eax, dword [esp + 0xa44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x402c5d
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
lea ecx, [esp + 0x20]
push ecx
push ebp
lea edx, [esp + 0x63c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402bfb
cmp dword [esp + 0x1c], ebp
jne 0x402bfb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x103
lea eax, [esp + 0x2d]
push ebx
push eax
mov byte [esp + 0x34], bl
call fcn.00446e10
add esp, 0xc
push edi
push 0x104
lea ecx, [esp + 0x30]
push ecx
push 0x473127
push str.SubKey
push str.info
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402bc0
sub eax, edx
je 0x402bd8
mov ebx, dword [esp + 0x20]
lea edx, [esp + 0x28]
call fcn.004031f0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
call fcn.004031d0
lea ecx, [esp + 0xa44]
call fcn.004031d0
mov eax, 1
jmp 0x402c6b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.004031d0
lea ecx, [esp + 0xa44]
call fcn.004031d0
jmp 0x402c69
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov byte [esp + 0xa3c], bl
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402c42
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xa3c], ebp
mov eax, dword [esp + 0xa44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x402c69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xa34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa1c]
xor ecx, esp
call fcn.004426a0
add esp, 0xa2c
ret 8