Function at 0x411199
Capabilities:
Clear file content
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1025c
call fcn.00439e70
mov eax, dword [0x448008]
xor eax, esp
mov dword [esp + 0x10258], eax
mov al, byte [ebp + 8]
push ebx
mov ebx, ecx
mov byte [esp + 7], dl
push esi
push edi
mov edx, ebx
mov byte [esp + 0xd], al
lea ecx, [esp + 0x158]
call fcn.0041028b
test al, al
jne 0x4111e0
mov al, 1
jmp 0x411711
push ecx
xor dl, dl
lea ecx, [esp + 0x15c]
call fcn.0040f913
mov dword [esp + 0x20], eax
pop ecx
cmp eax, 0xffffffff
je 0x4111d9
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x24]
xor edx, edx
or edx, eax
mov esi, edx
mov dword [esp + 0x24], edx
mov dl, byte [esp + 0xd]
shr esi, 0x14
test dl, dl
jne 0x411225
mov al, byte [ebx + 0x57]
test al, al
jne 0x411284
movsx ecx, byte [ebx + 0x28]
call fcn.0040f903
push 8
pop ecx
push 0xc
test dl, dl
not eax
pop edi
cmovne ecx, edi
and eax, dword [ecx + 0x44e490]
lea ecx, [esp + 0x30]
mov edx, eax
call fcn.00410ed2
mov al, byte [esp + 0x30]
xor edx, edx
mov ecx, edx
jmp 0x411267
movsx eax, al
cmp esi, dword [eax*4 + 0x44e324]
jbe 0x41126b
mov al, byte [esp + ecx + 0x31]
inc ecx
test al, al
jne 0x411256
mov al, byte [esp + ecx + 0x30]
test al, al
je 0x4116e2
cmp al, byte [esp + 0x158]
je 0x4116e2
lea edx, [esp + 0x159]
mov byte [esp + 0x50], al
lea ecx, [esp + 0x51]
call fcn.0040e8d5
push 4
pop edx
lea ecx, [esp + 0x50]
call fcn.0040f98b
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
jne 0x4112d1
lea eax, [esp + 0x50]
push eax
push str.Archive_unable_to_create_target_file__s
push 2
xor eax, eax
push 0x88
push eax
push eax
call fcn.00420600
add esp, 0x18
jmp 0x411705
and dword [ebx + 0x50], 0
cmp byte [esp + 0xd], 0
push 0x42
pop edx
push 2
pop eax
cmove edx, eax
mov al, dl
or al, 0x80
cmp byte [esp + 0xf], 0
movzx ecx, al
movzx eax, dl
cmove ecx, eax
xor eax, eax
push eax
mov byte [ebx + 0x4f], cl
xor edx, edx
push eax
mov ecx, esi
call fcn.0040ee40
xor edi, edi
and dword [esp + 0x1c], edi
pop ecx
pop ecx
mov dword [esp + 0x20], edi
cmp dword [0x44ac4c], edi
jne 0x4113d2
push 0
lea eax, [esp + 0x18]
push eax
push 0x10000
lea eax, [esp + 0x26c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4113d2
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4113d2
mov al, byte [esp + 0xd]
test al, al
je 0x41136f
mov eax, edi
lea ecx, [esp + 0x260]
not eax
mov edx, esi
push eax
call fcn.0040ebe2
test eax, eax
jne 0x4113ae
mov al, byte [esp + 0xd]
or byte [ebx + 0x47], 2
inc edi
mov dword [ebx + 0x50], edi
or byte [0x44ac88], 4
mov dword [esp + 0x20], edi
cmp esi, 0x10000
jne 0x4113d2
test al, al
je 0x41139c
call fcn.00410ae5
test byte [0x44e78c], 0x80
je 0x4113d2
cmp dword [0x44ac4c], 0
jne 0x4113d2
mov esi, dword [esp + 0x10]
jmp 0x41131d
mov ecx, dword [ebx + 0x50]
xor eax, eax
mov esi, dword [esp + 0x10]
xor edx, edx
shld eax, ecx, 0x10
shl ecx, 0x10
push eax
push ecx
mov ecx, esi
call fcn.0040ee40
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [esp + 0x10]
xor esi, esi
mov dword [esp + 0x18], esi
mov byte [esp + 0xe], 0
call fcn.0040ee6d
test edx, edx
ja 0x411516
jb 0x4113fa
cmp eax, dword [esp + 0x24]
jae 0x411516
mov edi, dword [ebx + 0x50]
xor esi, esi
mov ecx, dword [esp + 0x1c]
xor edx, edx
shld esi, edi, 0x10
shl edi, 0x10
push esi
push edi
call fcn.0040ee40
mov ecx, dword [esp + 0x18]
xor edx, edx
push esi
push edi
call fcn.0040ee40
add esp, 0x10
cmp dword [0x44ac4c], 0
jne 0x41150d
mov al, byte [esp + 0xd]
mov edi, dword [esp + 0x1c]
test al, al
je 0x411445
test byte [0x44e78c], 0x80
jmp 0x411449
cmp byte [ebx + 0x57], 0
je 0x41150d
push 0
lea eax, [esp + 0x2c]
push eax
push 0x10000
lea eax, [esp + 0x26c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [esp + 0x28]
mov dword [esp + 0x14], esi
je 0x411610
cmp byte [esp + 0xd], 0
je 0x4114a2
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x260]
not eax
mov edx, esi
push eax
call fcn.0040ebe2
test eax, eax
jne 0x411604
push 0
lea eax, [esp + 0x30]
push eax
push esi
lea eax, [esp + 0x26c]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x14]
jne 0x41160c
mov eax, dword [esp + 0x20]
or byte [ebx + 0x47], 2
inc eax
mov dword [ebx + 0x50], eax
or byte [0x44ac88], 4
cmp dword [esp + 0x14], 0x10000
mov dword [esp + 0x20], eax
jne 0x411512
mov al, byte [esp + 0xd]
test al, al
je 0x411500
call fcn.00410ae5
mov al, byte [esp + 0xd]
cmp dword [0x44ac4c], 0
je 0x411438
mov byte [esp + 0xe], 1
mov esi, dword [esp + 0x18]
push dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp byte [esp + 0xf], 0
je 0x41154b
test esi, esi
jne 0x41154b
cmp byte [esp + 0xe], 0
jne 0x41154b
xor eax, eax
lea ecx, [esp + 0x260]
push eax
push dword [esp + 0x14]
mov edx, ebx
call fcn.004159e9
mov esi, eax
push dword [esp + 0x10]
call edi
test esi, esi
jne 0x411640
cmp byte [esp + 0xe], 0
jne 0x41165e
movsx eax, byte [esp + 0x50]
mov ecx, str.Moved
cmp byte [esp + 0xf], 0
push eax
lea eax, [esp + 0x15c]
push eax
mov eax, str.Copied
cmove ecx, eax
cmp byte [esp + 0x15], 0
mov eax, str.Archived
cmove eax, ecx
push eax
push str._s__s_to__c:
xor eax, eax
push eax
push 0x80
push eax
push eax
call fcn.00420600
add esp, 0x20
cmp byte [esp + 0xd], 0
push 0x45
pop edx
push 5
pop eax
cmove edx, eax
mov al, dl
or al, 0x80
movzx ecx, al
movzx eax, dl
mov dl, byte [esp + 0xf]
test dl, dl
cmove ecx, eax
mov byte [ebx + 0x4f], cl
je 0x411639
mov dl, 1
lea ecx, [esp + 0x158]
call fcn.0040f1d2
mov al, byte [esp + 0x50]
sub al, 0x41
movsx ecx, al
mov byte [ebx + 0x28], al
call fcn.0040f903
mov ecx, ebx
test dword [0x44e498], eax
je 0x411632
xor eax, eax
mov dl, 1
push eax
push 3
jmp 0x4116b4
push 2
pop esi
jmp 0x411516
push 3
jmp 0x411606
mov ecx, edi
call fcn.0040ee6d
cmp dword [esp + 0x24], eax
jne 0x411623
xor eax, eax
cmp eax, edx
je 0x41162b
xor esi, esi
inc esi
jmp 0x411516
mov esi, eax
jmp 0x411516
xor eax, eax
push eax
push 4
jmp 0x4116b2
xor eax, eax
push eax
push 3
jmp 0x4116b0
push esi
lea eax, [esp + 0x54]
push eax
push str.Archive__s_failed__d
push 2
xor eax, eax
push 0x88
push eax
push eax
call fcn.00420600
add esp, 0x1c
test esi, esi
sete cl
add cl, 3
mov al, cl
or al, 0x40
cmp byte [esp + 0xd], 0
movzx edx, al
movzx eax, cl
cmove edx, eax
mov al, dl
or al, 0x80
cmp byte [esp + 0xf], 0
movzx ecx, al
movzx eax, dl
mov dl, 1
cmove ecx, eax
mov byte [ebx + 0x4f], cl
lea ecx, [esp + 0x50]
call fcn.0040f1d2
xor eax, eax
push eax
push ecx
mov ecx, ebx
call fcn.004147d9
add esp, 4
neg al
sbb al, al
and al, 3
movzx eax, al
push eax
mov ecx, ebx
mov dl, 0x1c
call fcn.0041055a
or byte [ebx + 0x47], 2
xor eax, eax
or byte [0x44ac88], 0x84
cmp byte [esp + 0xd], al
jne 0x4116d2
mov byte [ebx + 0x57], al
mov dword [ebx + 0x50], eax
test esi, esi
jne 0x411711
cmp byte [esp + 0xe], 0
jne 0x411711
xor eax, eax
inc eax
jmp 0x411711
lea eax, [esp + 0x158]
push eax
lea eax, [esp + 0x34]
push eax
push str.No_suitable_archive_disk___s__for__s
push 2
push 0x80
push edx
push edx
call fcn.00420600
add esp, 0x1c
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x10264]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042a623
mov esp, ebp
pop ebp
ret