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

Disassembly:
push 0xffffffffffffffff
push 0x4393ac
mov eax, dword fs:[0]
push eax
mov eax, 0x86c8
call fcn.0041ebf0
mov eax, dword [0x449cd0]
xor eax, esp
mov dword [esp + 0x86c4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449cd0]
xor eax, esp
push eax
lea eax, [esp + 0x86dc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x86ec]
mov ebx, dword [esp + 0x86f0]
mov edi, dword [esp + 0x86f8]
xor ebp, ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebp
call fcn.00410194
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x402c20
push 0x80004005
call fcn.00401330
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x104
lea ecx, [esp + 0x1d8]
push ebp
push ecx
mov dword [esp + 0x86f0], ebp
call fcn.0041ec20
lea edx, [esp + 0x1e0]
add esp, 0xc
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402c58
lea eax, [esp + 0x1d4]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402c70
mov edx, dword [str..ldzip]
mov cx, word [0x43b81c]
mov dword [eax], edx
mov dl, byte [0x43b81e]
mov word [eax + 4], cx
push 0x104
mov byte [eax + 6], dl
lea eax, [esp + 0xd4]
push ebp
push eax
call fcn.0041ec20
lea edx, [esp + 0xdc]
add esp, 0xc
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402cb5
cmp dword [esp + 0x86f4], ebp
je 0x402d03
lea ecx, [esp + 0x1d4]
push ecx
lea edx, [esp + 0xd4]
push edx
call fcn.0040eae0
add esp, 8
xor eax, eax
jmp 0x402cf0
mov cl, byte [esp + eax + 0x1d4]
mov byte [esp + eax + 0xd0], cl
inc eax
test cl, cl
jne 0x402cf0
xor ebx, ebx
test edi, edi
jne 0x402d1b
push 0x43b814
push esi
call fcn.0041e83b
add esp, 8
mov ebp, eax
jmp 0x402d1d
mov ebp, edi
test ebp, ebp
jne 0x402dfa
inc ebx
cmp ebx, 0x3e8
jle 0x402d05
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea ecx, [esp + 0x1c]
push str.fopen__s_Fail__d_
push ecx
call fcn.00401ce0
mov edx, dword [esp + 0x24]
add esp, 0x10
push 1
push edx
mov ecx, 0x44b3c5
call fcn.0040aa20
lea eax, [esp + 0x18]
push 0x16
push eax
call fcn.0040b840
mov eax, dword [eax]
push esi
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x86f8], 1
call fcn.00401ce0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x86e4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402da6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x86e4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402dcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
mov ecx, dword [esp + 0x86dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x86c4]
xor ecx, esp
call fcn.0041d4f4
add esp, 0x86d4
ret
lea eax, [esp + 0xd0]
push 0x43b560
push eax
xor esi, esi
call fcn.0041e83b
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x402e48
jmp 0x402e20
inc esi
cmp esi, 0x3e8
jg 0x40311f
lea ecx, [esp + 0xd0]
push 0x43b560
push ecx
call fcn.0041e83b
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x402e20
push 2
push 0
push 0
push ebp
call fcn.0041ed36
push ebp
call fcn.0041eb9e
push 0x400
mov dword [esp + 0x44], edx
lea edx, [esp + 0x2f0]
push 0
push edx
mov dword [esp + 0x48], eax
call fcn.0041ec20
push 0x98
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.0041ec20
mov ecx, 6
mov esi, str.LeaderCab
lea edi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [esp + 0x4c]
add esp, 0x2c
push esi
lea ecx, [esp + 0x28]
call fcn.00402ae0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x86ec], 3
call fcn.00408170
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x5c]
lea ebx, [ebx]
mov dl, byte [eax]
mov byte [ecx], dl
inc eax
inc ecx
test dl, dl
jne 0x402ed0
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 0x402efa
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 + 0x86e4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xc0]
push ecx
push 0
push esi
call fcn.00407b90
add esp, 0xc
cmp dword [esp + 0x86f4], 0
je 0x402f44
or dword [esp + 0x58], 1
push ebp
push 1
lea edx, [esp + 0x2e0]
push 0x400
mov ecx, 0x26
lea esi, [esp + 0x44]
lea edi, [esp + 0x2e4]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0041e3d0
push ebx
call fcn.0041e452
add esp, 0x14
test eax, eax
jne 0x40304e
lea esp, [esp]
push ebx
push 0x8000
lea eax, [esp + 0x6e0]
push 1
push eax
call fcn.0041e75a
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x402fab
push ebx
call fcn.0041e486
add esp, 4
test eax, eax
jne 0x402ff2
push ebp
push esi
lea ecx, [esp + 0x6e0]
push 1
push ecx
call fcn.0041e3d0
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x402fd2
push ebp
call fcn.0041e486
add esp, 4
test eax, eax
jne 0x40301c
mov eax, esi
cdq
add dword [esp + 0xc8], eax
push ebx
adc dword [esp + 0xd0], edx
call fcn.0041e452
add esp, 4
test eax, eax
je 0x402f80
jmp 0x40304e
mov dword [esp + 0x1c], 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.00401ce0
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push eax
jmp 0x403044
mov dword [esp + 0x1c], 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.00401ce0
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
push edx
mov ecx, 0x44b3c5
call fcn.0040aa20
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push 0
push eax
push ecx
push ebp
call fcn.0041ed36
push ebp
push 1
lea edx, [esp + 0x50]
push 0x98
push edx
call fcn.0041e3d0
add esp, 0x20
cmp dword [esp + 0xc8], 0
jne 0x4030ba
cmp dword [esp + 0xcc], 0
jne 0x4030ba
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
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.00401ce0
mov eax, dword [esp + 0x2c]
add esp, 0x18
push 0
push eax
mov ecx, 0x44b3c5
call fcn.0040aa20
cmp dword [esp + 0x18], 0
jne 0x4030ca
push ebp
call fcn.0041e1f2
add esp, 4
push ebx
call fcn.0041e1f2
add esp, 4
cmp dword [esp + 0x86f4], 0
je 0x4030eb
lea ecx, [esp + 0x1d4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x86e4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403116
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
jmp 0x402dd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0xd4]
push ecx
lea edx, [esp + 0x1c]
push str.fopen__s_Fail__d_
push edx
call fcn.00401ce0
mov eax, dword [esp + 0x24]
add esp, 0x10
push 1
push eax
mov ecx, 0x44b3c5
call fcn.0040aa20
lea ecx, [esp + 0x18]
push 0x16
push ecx
call fcn.0040b840
mov eax, dword [eax]
lea edx, [esp + 0xd8]
push edx
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x86f8], 2
call fcn.00401ce0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x86e4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4031a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
call fcn.0041e1f2
add esp, 4
jmp 0x402da6