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

Disassembly:
push 0xffffffffffffffff
push 0x43e906
mov eax, dword fs:[0]
push eax
mov eax, 0x88e0
call fcn.00427010
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.004133f1
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x403d5f
push 0x80004005
call fcn.00409d60
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.00424c40
lea edx, [esp + 0x2f0]
add esp, 0xc
mov eax, esi
sub edx, esi
jmp 0x403da0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403da0
lea eax, [esp + 0x2e4]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403db2
mov edx, dword [str..ldzip]
mov cx, word [0x447a84]
mov dword [eax], edx
mov dl, byte [0x447a86]
mov word [eax + 4], cx
push 0x208
mov byte [eax + 6], dl
lea eax, [esp + 0xe0]
push edi
push eax
call fcn.00424c40
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 0x403df7
cmp dword [esp + 0x8904], edi
je 0x403e43
lea ecx, [esp + 0x2e4]
push ecx
lea ecx, [esp + 0xe0]
call fcn.00412ca0
add esp, 4
xor eax, eax
jmp 0x403e30
mov cl, byte [esp + eax + 0x2e4]
mov byte [esp + eax + 0xdc], cl
inc eax
test cl, cl
jne 0x403e30
lea edx, [esp + 0xdc]
push 0x447a7c
push edx
xor esi, esi
call fcn.00422167
mov ebp, eax
add esp, 8
cmp ebp, edi
jne 0x403e88
inc esi
cmp esi, 0x3e8
jg 0x404193
lea eax, [esp + 0xdc]
push 0x447a7c
push eax
call fcn.00422167
mov ebp, eax
add esp, 8
cmp ebp, edi
je 0x403e60
push 2
push edi
push edi
push ebx
call fcn.00422bac
push ebx
call fcn.004227a1
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.00424c40
add esp, 0xc
push 0x98
lea edx, [esp + 0x48]
push edi
push edx
call fcn.00424c40
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.004098c0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x88fc], 1
call fcn.0040a5c0
mov eax, dword [eax]
add esp, 4
lea ecx, [esp + 0x68]
jmp 0x403f10
mov dl, byte [eax]
mov byte [ecx], dl
inc eax
inc ecx
test dl, dl
jne 0x403f10
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 0x403f3a
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 0x403f62
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 0x403fb3
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 0x403fac
lea ecx, [esp + 0xcc]
test ecx, ecx
je 0x403fac
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 0x403fc2
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.004223d3
push ebp
call fcn.004227eb
add esp, 0x14
test eax, eax
jne 0x4040ce
lea ebx, [ebx]
push ebp
push 0x8000
lea edx, [esp + 0x8f4]
push 1
push edx
call fcn.00422af3
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x40402b
push ebp
call fcn.0042281f
add esp, 4
test eax, eax
jne 0x404072
push ebx
push esi
lea eax, [esp + 0x8f4]
push 1
push eax
call fcn.004223d3
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x404052
push ebx
call fcn.0042281f
add esp, 4
test eax, eax
jne 0x40409c
mov eax, esi
cdq
add dword [esp + 0xd4], eax
push ebp
adc dword [esp + 0xdc], edx
call fcn.004227eb
add esp, 4
test eax, eax
je 0x404000
jmp 0x4040ce
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.00409670
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0
push edx
jmp 0x4040c4
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.00409670
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0
push ecx
push 0x453d09
call fcn.0040d390
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push 0
push edx
push eax
push ebx
call fcn.00422bac
push ebx
push 1
lea ecx, [esp + 0x5c]
push 0x98
push ecx
call fcn.004223d3
add esp, 0x20
cmp dword [esp + 0xd4], 0
jne 0x40413a
cmp dword [esp + 0xd8], 0
jne 0x40413a
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.00409670
mov edx, dword [esp + 0x28]
add esp, 0x18
push 0
push edx
push 0x453d09
call fcn.0040d390
test ebp, ebp
je 0x404147
push ebp
call fcn.004221f5
add esp, 4
cmp dword [esp + 0x8904], 0
je 0x40415f
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 0x40418a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
jmp 0x40426c
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.00409670
mov edi, dword [esp + 0x20]
add esp, 0x10
push 1
push edi
push 0x453d09
call fcn.0040d390
test esi, esi
je 0x404240
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 [0x453d0d]
mov eax, dword [ecx - 0xc]
test eax, eax
jne 0x40420b
mov edx, dword [esp + 0x14]
push edx
push 0x447a9c
push 0x453d0d
call fcn.00409670
add esp, 0xc
mov eax, dword [0x453d11]
cmp dword [eax - 0xc], 0
jne 0x40422d
mov ecx, dword [esp + 0x1c]
push ecx
push 0x447a9c
push 0x453d11
call fcn.00409670
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 0x404267
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.0042179d
add esp, 0x88ec
ret