Function at 0x401c60
Capabilities:
Copy file
Create directory
Delete file
Get common file path
Move file
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x437ca7
mov eax, dword fs:[0]
push eax
sub esp, 0x390
mov eax, dword [0x4483d0]
xor eax, esp
mov dword [esp + 0x388], eax
push ebx
push esi
push edi
mov eax, dword [0x4483d0]
xor eax, esp
push eax
lea eax, [esp + 0x3a0]
mov dword fs:[0], eax
push 0x103
lea eax, [esp + 0x290]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x7c]
push ecx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x7c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401cd0
sub eax, edx
cmp byte [esp + eax + 0x7b], 0x5c
je 0x401d04
lea edi, [esp + 0x7c]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x401cf0
mov dx, word [0x43ea74]
mov word [edi], dx
lea eax, [esp + 0x28c]
push 0x43ea1c
push eax
call fcn.00421768
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x401e75
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401270
push 5
push str.nonT_
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3b0], ebx
call fcn.004030b0
mov eax, dword [esp + 0x14]
call fcn.004025a0
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x184]
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x401d60
lea edx, [esp + 0x184]
push 0x5c
push edx
call fcn.00421ec0
add esp, 8
mov byte [eax], 0
push ebx
lea eax, [esp + 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor eax, eax
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x184]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov word [esp + 0x5c], ax
mov word [esp + 0x50], 0x54
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401270
push 6
push str.7z.exe
lea ecx, [esp + 0x20]
mov byte [esp + 0x3b0], 1
call fcn.004030b0
mov ecx, dword [esp + 0x18]
push 0x43ea88
push ecx
call fcn.00421768
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x401e7c
push esi
call fcn.00422323
mov byte [esp + 0x3ac], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401e4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x3a8], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x402234
push 0
push pe_overlay
push esi
call fcn.0042217a
add esp, 0xc
push 0x82e00
call fcn.00405905
add esp, 4
push esi
push 0x82e00
mov edi, eax
push 1
push edi
call fcn.00421c3a
push ebx
push 0x82e00
push 1
push edi
call fcn.00421dea
push ebx
call fcn.00422323
add esp, 0x24
push edi
call fcn.00405900
add esp, 4
push 2
push 0xffffffffffffffd8
push esi
call fcn.0042217a
add esp, 0xc
xor eax, eax
push esi
push 8
lea ecx, [esp + 0x64]
push 1
push ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
call fcn.00421c3a
lea edx, [esp + 0x6c]
push edx
call fcn.004211b1
cdq
and edx, 0x1f
add eax, edx
add esp, 0x14
mov edi, eax
push 0x44c574
sar edi, 5
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00406a98
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
test eax, eax
je 0x401f4b
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x7e9
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x44c574
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
mov dword [esp + 0x20], edi
jle 0x4021dc
shl edi, 5
mov eax, 0xffffffe1
sub eax, edi
mov dword [esp + 0x1c], eax
jmp 0x401f86
mov eax, dword [esp + 0x1c]
push 2
push eax
push esi
call fcn.0042217a
add esp, 0xc
xor eax, eax
push esi
push 0x17
lea ecx, [esp + 0x64]
push 1
push ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
call fcn.00421c3a
add esp, 0x10
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x14]
call fcn.00401270
lea ebx, [esp + 0x10]
mov byte [esp + 0x3a8], 2
call fcn.00402e60
mov edi, eax
call fcn.00402ee0
push 4
lea eax, [esp + 0x38]
push eax
mov ecx, ebx
call fcn.00402c20
mov eax, dword [eax]
push str..exe
push eax
call fcn.004224bb
add esp, 8
test eax, eax
mov eax, dword [esp + 0x34]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402038
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x40219c
push 3
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402c20
mov eax, dword [eax]
push 0x43ea94
push eax
call fcn.004224bb
add esp, 8
test eax, eax
mov eax, dword [esp + 0x38]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402085
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4020c3
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
call fcn.00402d20
add esp, 8
mov byte [esp + 0x3a8], 3
mov edi, dword [eax]
mov ecx, dword [esp + 0x18]
call fcn.004028c0
mov byte [esp + 0x3a8], 2
mov eax, dword [esp + 0x24]
jmp 0x402180
mov ecx, dword [esp + 0x10]
push ecx
push str.Process__s_r_n
call fcn.00402670
lea edx, [esp + 0x34]
push 0x44c368
push edx
lea ecx, [esp + 0x20]
call fcn.00402d20
mov eax, dword [eax]
push eax
call fcn.004018a0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402110
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x28]
push 0x44c368
push ecx
lea ecx, [esp + 0x18]
call fcn.00402d20
mov edi, eax
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3b8], 4
call fcn.00402d20
mov edi, dword [edi]
mov eax, dword [eax]
add esp, 0x10
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402174
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3a8], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40219c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3a8], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4021c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add dword [esp + 0x1c], 0x20
sub eax, 1
test eax, eax
mov dword [esp + 0x20], eax
jg 0x401f82
mov byte [esp + 0x3a8], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402204
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x3a8], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40222f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x3a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x388]
xor ecx, esp
call fcn.00420b57
mov esp, ebp
pop ebp
ret