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

Disassembly:
push 0xffffffffffffffff
push 0x43ae2c
mov eax, dword fs:[0]
push eax
mov eax, 0x86c8
call fcn.00420a10
mov eax, dword [0x44bcd0]
xor eax, esp
mov dword [esp + 0x86c4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44bcd0]
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.00411c35
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
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 0x104
lea ecx, [esp + 0x1d8]
push ebp
push ecx
mov dword [esp + 0x86f0], ebp
call fcn.00420a40
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 0x402eb8
lea eax, [esp + 0x1d4]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402ed0
mov edx, dword [str..ldzip]
mov cx, word [0x43d82c]
mov dword [eax], edx
mov dl, byte [0x43d82e]
mov word [eax + 4], cx
push 0x104
mov byte [eax + 6], dl
lea eax, [esp + 0xd4]
push ebp
push eax
call fcn.00420a40
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 0x402f15
cmp dword [esp + 0x86f4], ebp
je 0x402f63
lea ecx, [esp + 0x1d4]
push ecx
lea edx, [esp + 0xd4]
push edx
call fcn.00410570
add esp, 8
xor eax, eax
jmp 0x402f50
mov cl, byte [esp + eax + 0x1d4]
mov byte [esp + eax + 0xd0], cl
inc eax
test cl, cl
jne 0x402f50
xor ebx, ebx
test edi, edi
jne 0x402f7b
push 0x43d824
push esi
call fcn.0042065d
add esp, 8
mov ebp, eax
jmp 0x402f7d
mov ebp, edi
test ebp, ebp
jne 0x40305a
inc ebx
cmp ebx, 0x3e8
jle 0x402f65
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.00401f40
mov edx, dword [esp + 0x24]
add esp, 0x10
push 1
push edx
mov ecx, 0x44d3c9
call fcn.0040bc50
lea eax, [esp + 0x18]
push 0x16
push eax
call fcn.0040ca70
mov eax, dword [eax]
push esi
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x86f8], 1
call fcn.00401f40
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 0x403006
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 0x40302d
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.0041eff4
add esp, 0x86d4
ret
lea eax, [esp + 0xd0]
push 0x43d570
push eax
xor esi, esi
call fcn.0042065d
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4030a8
jmp 0x403080
inc esi
cmp esi, 0x3e8
jg 0x40337f
lea ecx, [esp + 0xd0]
push 0x43d570
push ecx
call fcn.0042065d
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403080
push 2
push 0
push 0
push ebp
call fcn.00420b56
push ebp
call fcn.004209c0
push 0x400
mov dword [esp + 0x44], edx
lea edx, [esp + 0x2f0]
push 0
push edx
mov dword [esp + 0x48], eax
call fcn.00420a40
push 0x98
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.00420a40
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.00402d40
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x86ec], 3
call fcn.00409220
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 0x403130
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 0x40315a
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 0x403182
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.00408c10
add esp, 0xc
cmp dword [esp + 0x86f4], 0
je 0x4031a4
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.004201f2
push ebx
call fcn.00420274
add esp, 0x14
test eax, eax
jne 0x4032ae
lea esp, [esp]
push ebx
push 0x8000
lea eax, [esp + 0x6e0]
push 1
push eax
call fcn.0042057c
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x40320b
push ebx
call fcn.004202a8
add esp, 4
test eax, eax
jne 0x403252
push ebp
push esi
lea ecx, [esp + 0x6e0]
push 1
push ecx
call fcn.004201f2
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x403232
push ebp
call fcn.004202a8
add esp, 4
test eax, eax
jne 0x40327c
mov eax, esi
cdq
add dword [esp + 0xc8], eax
push ebx
adc dword [esp + 0xd0], edx
call fcn.00420274
add esp, 4
test eax, eax
je 0x4031e0
jmp 0x4032ae
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.00401f40
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push eax
jmp 0x4032a4
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.00401f40
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
push edx
mov ecx, 0x44d3c9
call fcn.0040bc50
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push 0
push eax
push ecx
push ebp
call fcn.00420b56
push ebp
push 1
lea edx, [esp + 0x50]
push 0x98
push edx
call fcn.004201f2
add esp, 0x20
cmp dword [esp + 0xc8], 0
jne 0x40331a
cmp dword [esp + 0xcc], 0
jne 0x40331a
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.00401f40
mov eax, dword [esp + 0x2c]
add esp, 0x18
push 0
push eax
mov ecx, 0x44d3c9
call fcn.0040bc50
cmp dword [esp + 0x18], 0
jne 0x40332a
push ebp
call fcn.00420014
add esp, 4
push ebx
call fcn.00420014
add esp, 4
cmp dword [esp + 0x86f4], 0
je 0x40334b
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 0x403376
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
jmp 0x403032
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.00401f40
mov eax, dword [esp + 0x24]
add esp, 0x10
push 1
push eax
mov ecx, 0x44d3c9
call fcn.0040bc50
lea ecx, [esp + 0x18]
push 0x16
push ecx
call fcn.0040ca70
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.00401f40
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 0x403405
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
call fcn.00420014
add esp, 4
jmp 0x403006