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

Disassembly:
push 0xffffffffffffffff
push 0x43b78c
mov eax, dword fs:[0]
push eax
mov eax, 0x88d4
call fcn.00421330
mov eax, dword [0x44ccd0]
xor eax, esp
mov dword [esp + 0x88d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44ccd0]
xor eax, esp
push eax
lea eax, [esp + 0x88e8]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x88f8]
mov esi, dword [esp + 0x88fc]
mov ebp, dword [esp + 0x8904]
xor edi, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], edi
call fcn.004125a5
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402e80
push 0x80004005
call fcn.004011d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x208
lea ecx, [esp + 0x2e0]
push edi
push ecx
mov dword [esp + 0x88fc], edi
mov dword [esp + 0x24], edi
call fcn.00421360
lea edx, [esp + 0x2e8]
add esp, 0xc
mov eax, ebx
sub edx, ebx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402ec0
lea eax, [esp + 0x2dc]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402ed2
mov edx, dword [str..ldzip]
mov cx, word [0x43e838]
mov dword [eax], edx
mov dl, byte [0x43e83a]
mov word [eax + 4], cx
push 0x208
mov byte [eax + 6], dl
lea eax, [esp + 0xd8]
push edi
push eax
call fcn.00421360
lea edx, [esp + 0xe0]
add esp, 0xc
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402f17
cmp dword [esp + 0x8900], edi
je 0x402f63
lea ecx, [esp + 0x2dc]
push ecx
lea edx, [esp + 0xd8]
push edx
call fcn.00410b60
add esp, 8
xor eax, eax
jmp 0x402f50
mov cl, byte [esp + eax + 0x2dc]
mov byte [esp + eax + 0xd4], cl
inc eax
test cl, cl
jne 0x402f50
xor esi, esi
cmp ebp, edi
jne 0x402f90
push 0x43e830
push ebx
call fcn.00420f7d
mov ebp, eax
add esp, 8
cmp ebp, edi
jne 0x402f90
inc esi
cmp esi, 0x3e8
jg 0x40338b
mov ebp, dword [esp + 0x28]
jmp 0x402f65
lea eax, [esp + 0xd4]
push 0x43e570
push eax
xor esi, esi
call fcn.00420f7d
mov ebx, eax
add esp, 8
cmp ebx, edi
jne 0x402fd8
lea ecx, [ecx]
inc esi
cmp esi, 0x3e8
jg 0x4032a1
lea ecx, [esp + 0xd4]
push 0x43e570
push ecx
call fcn.00420f7d
mov ebx, eax
add esp, 8
cmp ebx, edi
je 0x402fb0
push 2
push edi
push edi
push ebp
call fcn.00421476
push ebp
call fcn.004212e0
push 0x400
mov dword [esp + 0x50], edx
lea edx, [esp + 0x4fc]
push edi
push edx
mov dword [esp + 0x54], eax
call fcn.00421360
push 0x98
lea eax, [esp + 0x60]
push edi
push eax
call fcn.00421360
mov ecx, 6
mov esi, str.LeaderCab
lea edi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [esp + 0x58]
add esp, 0x2c
push esi
lea ecx, [esp + 0x28]
call fcn.00402d40
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x88f8], 3
call fcn.00408f10
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x60]
mov dl, byte [eax]
mov byte [ecx], dl
inc eax
inc ecx
test dl, dl
jne 0x403056
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 0x403080
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x88f0], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xc4]
push ecx
push 0
push esi
call fcn.00408900
add esp, 0xc
cmp dword [esp + 0x8900], 0
je 0x4030ca
or dword [esp + 0x5c], 1
push ebp
push 1
lea edx, [esp + 0x4ec]
push 0x400
mov ecx, 0x26
lea esi, [esp + 0x48]
lea edi, [esp + 0x4f0]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00420b12
push ebx
call fcn.00420b94
add esp, 0x14
test eax, eax
jne 0x4031d0
push ebx
push 0x8000
lea eax, [esp + 0x8ec]
push 1
push eax
call fcn.00420e9c
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x40312d
push ebx
call fcn.00420bc8
add esp, 4
test eax, eax
jne 0x403174
push ebp
push esi
lea ecx, [esp + 0x8ec]
push 1
push ecx
call fcn.00420b12
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x403154
push ebp
call fcn.00420bc8
add esp, 4
test eax, eax
jne 0x40319e
mov eax, esi
cdq
add dword [esp + 0xcc], eax
push ebx
adc dword [esp + 0xd4], edx
call fcn.00420b94
add esp, 4
test eax, eax
je 0x403102
jmp 0x4031d0
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x18]
push str.Read_file__error_with_code:__d__in_function_JoinFiles_
push edx
call fcn.00401f40
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push eax
jmp 0x4031c6
mov dword [esp + 0x20], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x18]
push str.Write_file__error_with_code:__d__in_function_JoinFiles_
push ecx
call fcn.00401f40
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
push edx
mov ecx, 0x44e3c9
call fcn.0040be50
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push 0
push eax
push ecx
push ebp
call fcn.00421476
push ebp
push 1
lea edx, [esp + 0x54]
push 0x98
push edx
call fcn.00420b12
add esp, 0x20
cmp dword [esp + 0xcc], 0
jne 0x40323c
cmp dword [esp + 0xd0], 0
jne 0x40323c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
push 0
push 0
push eax
push ecx
lea edx, [esp + 0x24]
push str.JoinFiles__s__To_CompressFile__s__Size__d_
push edx
call fcn.00401f40
mov eax, dword [esp + 0x2c]
add esp, 0x18
push 0
push eax
mov ecx, 0x44e3c9
call fcn.0040be50
cmp dword [esp + 0x28], 0
jne 0x40324c
push ebp
call fcn.00420934
add esp, 4
push ebx
call fcn.00420934
add esp, 4
cmp dword [esp + 0x8900], 0
je 0x40326d
lea ecx, [esp + 0x2dc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x88f0], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403298
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
jmp 0x403485
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
lea ecx, [esp + 0xd8]
push ecx
lea edx, [esp + 0x1c]
push str.fopen__s_Fail__d_
push edx
call fcn.00401f40
mov eax, dword [esp + 0x24]
add esp, 0x10
push 1
push eax
mov ecx, 0x44e3c9
call fcn.0040be50
cmp esi, edi
je 0x40337d
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
push 0x400
push esi
push edi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea edx, [esp + 0x1c]
push 3
push edx
call fcn.0040d030
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
lea ecx, [esp + 0xdc]
push ecx
push edx
push eax
lea ecx, [esp + 0x28]
push str._s_n_s__s_
push ecx
mov byte [esp + 0x890c], 2
call fcn.00401f40
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [esp + 0x88f0], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403354
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x44e3cd]
cmp dword [ecx - 0xc], edi
jne 0x40336e
lea edx, [esp + 0x14]
push edx
mov ecx, 0x44e3cd
call fcn.00401ec0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x18], edi
push ebp
call fcn.00420934
add esp, 4
jmp 0x403459
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
lea ecx, [esp + 0x1c]
push str.fopen__s_Fail__d_
push ecx
call fcn.00401f40
mov edx, dword [esp + 0x24]
add esp, 0x10
push 1
push edx
mov ecx, 0x44e3c9
call fcn.0040be50
cmp esi, edi
je 0x403459
push edi
push edi
lea eax, [esp + 0x20]
push eax
push 0x400
push esi
push edi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea ecx, [esp + 0x1c]
push 3
push ecx
call fcn.0040d030
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
push ebx
push edx
push eax
lea ecx, [esp + 0x28]
push str._s_n_s__s_
push ecx
mov byte [esp + 0x890c], 1
call fcn.00401f40
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [esp + 0x88f0], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403430
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x44e3cd]
cmp dword [ecx - 0xc], edi
jne 0x40344a
lea edx, [esp + 0x14]
push edx
mov ecx, 0x44e3cd
call fcn.00401ec0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x88f0], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403480
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
mov ecx, dword [esp + 0x88e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88d0]
xor ecx, esp
call fcn.0041f914
add esp, 0x88e0
ret