Function at 0x403d10
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43f306
mov eax, dword fs:[0]
push eax
mov eax, 0x88e0
call fcn.00427790
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x88dc], eax
push ebp
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x88f0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8900]
mov esi, ecx
xor edi, edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], edi
call fcn.00413be1
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x403d7f
push 0x80004005
call fcn.0040a000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x208
lea ecx, [esp + 0x2e8]
push edi
mov dword [esp + 0x8900], edi
push ecx
mov dword [esp + 0x20], edi
call fcn.004253a0
lea edx, [esp + 0x2f0]
add esp, 0xc
mov eax, esi
sub edx, esi
jmp 0x403dc0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403dc0
lea eax, [esp + 0x2e4]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403dd2
mov edx, dword [str..ldzip]
mov cx, word [0x447ae4]
mov dword [eax], edx
mov dl, byte [0x447ae6]
mov word [eax + 4], cx
push 0x208
mov byte [eax + 6], dl
lea eax, [esp + 0xe0]
push edi
push eax
call fcn.004253a0
lea edx, [esp + 0xe8]
add esp, 0xc
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403e17
cmp dword [esp + 0x8904], edi
je 0x403e63
lea ecx, [esp + 0x2e4]
push ecx
lea ecx, [esp + 0xe0]
call fcn.00413490
add esp, 4
xor eax, eax
jmp 0x403e50
mov cl, byte [esp + eax + 0x2e4]
mov byte [esp + eax + 0xdc], cl
inc eax
test cl, cl
jne 0x403e50
lea edx, [esp + 0xdc]
push 0x447ae8
push edx
xor esi, esi
call fcn.004228cf
mov ebp, eax
add esp, 8
cmp ebp, edi
jne 0x403ea8
inc esi
cmp esi, 0x3e8
jg 0x4041b3
lea eax, [esp + 0xdc]
push 0x447ae8
push eax
call fcn.004228cf
mov ebp, eax
add esp, 8
cmp ebp, edi
je 0x403e80
push 2
push edi
push edi
push ebx
call fcn.00422a75
push ebx
call fcn.00422e10
add esp, 0x14
push 0x400
lea ecx, [esp + 0x4f0]
push edi
push ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
call fcn.004253a0
add esp, 0xc
push 0x98
lea edx, [esp + 0x48]
push edi
push edx
call fcn.004253a0
mov ecx, 6
mov esi, str.LeaderCab
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [esp + 0x28]
add esp, 0xc
push esi
lea ecx, [esp + 0x38]
call fcn.00409b60
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x88fc], 1
call fcn.0040a890
mov eax, dword [eax]
add esp, 4
lea ecx, [esp + 0x68]
jmp 0x403f30
mov dl, byte [eax]
mov byte [ecx], dl
inc eax
inc ecx
test dl, dl
jne 0x403f30
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88f8], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
test esi, esi
je 0x403fd3
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x403fcc
lea ecx, [esp + 0xcc]
test ecx, ecx
je 0x403fcc
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd0], eax
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
cmp dword [esp + 0x8904], 0
je 0x403fe2
or dword [esp + 0x64], 1
push ebx
mov ecx, 0x26
lea esi, [esp + 0x48]
lea edi, [esp + 0x4f0]
push 1
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x4f4]
push 0x400
push ecx
call fcn.00422fbc
push ebp
call fcn.0042303e
add esp, 0x14
test eax, eax
jne 0x4040ee
lea ebx, [ebx]
push ebp
push 0x8000
lea edx, [esp + 0x8f4]
push 1
push edx
call fcn.00423346
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x40404b
push ebp
call fcn.00423072
add esp, 4
test eax, eax
jne 0x404092
push ebx
push esi
lea eax, [esp + 0x8f4]
push 1
push eax
call fcn.00422fbc
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x404072
push ebx
call fcn.00423072
add esp, 4
test eax, eax
jne 0x4040bc
mov eax, esi
cdq
add dword [esp + 0xd4], eax
push ebp
adc dword [esp + 0xdc], edx
call fcn.0042303e
add esp, 4
test eax, eax
je 0x404020
jmp 0x4040ee
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x14]
push str.Read_file__error_with_code:__d__in_function_JoinFiles_
push ecx
call fcn.00409910
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0
push edx
jmp 0x4040e4
mov dword [esp + 0x18], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x14]
push str.Write_file__error_with_code:__d__in_function_JoinFiles_
push eax
call fcn.00409910
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0
push ecx
push 0x453d11
call fcn.0040d890
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push 0
push edx
push eax
push ebx
call fcn.00422a75
push ebx
push 1
lea ecx, [esp + 0x5c]
push 0x98
push ecx
call fcn.00422fbc
add esp, 0x20
cmp dword [esp + 0xd4], 0
jne 0x40415a
cmp dword [esp + 0xd8], 0
jne 0x40415a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
push 0
push 0
push edx
push eax
lea ecx, [esp + 0x20]
push str.JoinFiles__s__To_CompressFile__s__Size__d_
push ecx
call fcn.00409910
mov edx, dword [esp + 0x28]
add esp, 0x18
push 0
push edx
push 0x453d11
call fcn.0040d890
test ebp, ebp
je 0x404167
push ebp
call fcn.0042295d
add esp, 4
cmp dword [esp + 0x8904], 0
je 0x40417f
lea eax, [esp + 0x2e4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 0x88f8], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4041aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
jmp 0x40428c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
lea ecx, [esp + 0xe0]
push ecx
lea edx, [esp + 0x18]
push str.fopen__s_Fail__d_
push edx
call fcn.00409910
mov edi, dword [esp + 0x20]
add esp, 0x10
push 1
push edi
push 0x453d11
call fcn.0040d890
test esi, esi
je 0x404260
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [0x453d15]
mov eax, dword [ecx - 0xc]
test eax, eax
jne 0x40422b
mov edx, dword [esp + 0x14]
push edx
push 0x447b00
push 0x453d15
call fcn.00409910
add esp, 0xc
mov eax, dword [0x453d19]
cmp dword [eax - 0xc], 0
jne 0x40424d
mov ecx, dword [esp + 0x1c]
push ecx
push 0x447b00
push 0x453d19
call fcn.00409910
add esp, 0xc
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x14], 0
lea eax, [edi - 0x10]
mov dword [esp + 0x88f8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404287
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
mov ecx, dword [esp + 0x88f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x88dc]
xor ecx, esp
call fcn.00421f05
add esp, 0x88ec
ret