Function at 0x481f61
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x5085fa
call fcn.004d2c19
mov esi, ecx
mov dword [ebp - 0x20], esi
push dword [ebp + 8]
lea edi, [esi + 0x78]
mov ecx, edi
mov dword [ebp - 0x2c], edi
call fcn.00483874
mov ebx, eax
mov dword [ebp - 0x28], ebx
cmp byte [ebx + 0x1c], 0
je 0x481f94
xor eax, eax
jmp 0x482395
push dword [ebp + 8]
mov ecx, edi
call fcn.00483874
mov ecx, esi
push dword [eax + 4]
call fcn.0048309e
push eax
lea ecx, [ebp - 0x14]
call fcn.004073cf
push dword [ebp + 8]
mov ecx, edi
call fcn.00483874
add eax, 0x18
lea edx, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.0047f1e3
mov eax, dword [ebx + 0xc]
pop ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
call fcn.00409419
lea ecx, [ebp - 0x1c]
call fcn.00471580
mov bl, al
neg bl
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00406df6
add bl, 1
je 0x48201c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
push 0x104
call fcn.0048304f
push 0xe
jmp 0x4820c4
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
push 0
push esi
call fcn.00493d5b
mov ebx, dword [ebp + 0xc]
pop ecx
pop ecx
test al, al
jne 0x4820ca
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x48204c
mov eax, dword [ecx]
push 0
push esi
push dword [ebp - 0x14]
call dword [eax]
test eax, eax
jne 0x4820ca
cmp byte [0x56b83c], 0
je 0x4820c2
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x14]
add eax, 0x18
lea ecx, [ebp + 0xc]
push eax
call fcn.0047f1e3
pop ecx
mov esi, dword [eax]
call fcn.00406d01
push eax
lea ecx, [ebp + 8]
call fcn.00406b29
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
push str.Not_enough_disk_space_to_extract_file:
call fcn.004072c4
test esi, esi
je 0x482096
push esi
lea ecx, [ebp + 8]
call fcn.004072c4
lea eax, [ebp + 8]
mov ecx, 0x56b80c
push eax
call fcn.00489943
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00406df6
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00406df6
push 0xa
pop edi
jmp 0x482375
push dword [ebp + 8]
mov ecx, edi
call fcn.00483874
mov ebx, dword [ebx]
mov dword [ebp - 0x1c], ebx
cmp dword [eax + 4], 0xc
sete al
mov byte [ebp + 0xf], al
test ebx, ebx
je 0x48211c
push dword [ebp + 8]
mov esi, dword [ebx]
mov ecx, edi
call fcn.00483874
push 0
mov ecx, ebx
push dword [eax + 0xc]
call dword [esi + 0x1c]
push dword [ebp + 8]
mov esi, dword [ebx]
mov ecx, edi
call fcn.00483874
lea ecx, [ebp - 0x10]
push dword [eax]
call fcn.00470be0
push eax
mov ecx, ebx
call dword [esi + 0x14]
mov al, byte [ebp + 0xf]
mov ebx, dword [ebp - 0x20]
test al, al
je 0x482132
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 0xa4]
call fcn.0046daf0
lea eax, [ebx + 0xb0]
xor dl, dl
push eax
lea ecx, [ebp - 0x10]
call fcn.00471150
pop ecx
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x482217
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
push 0x104
call fcn.0048304f
cmp byte [0x56b83c], 0
je 0x482267
push ecx
call esi
mov edx, eax
lea ecx, [ebp + 0xc]
call fcn.0046d610
mov edi, dword [ebp - 0x10]
pop ecx
mov esi, dword [eax]
call fcn.00406d01
push eax
lea ecx, [ebp + 8]
call fcn.00406b29
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
push str.Failed_to_extract_file:
call fcn.004072c4
test edi, edi
je 0x4821cf
push edi
lea ecx, [ebp + 8]
call fcn.004072c4
push str._Error:
lea ecx, [ebp + 8]
call fcn.004072c4
test esi, esi
je 0x4821e9
push esi
lea ecx, [ebp + 8]
call fcn.004072c4
lea eax, [ebp + 8]
mov ecx, 0x56b80c
push eax
call fcn.00489943
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00406df6
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00406df6
jmp 0x482267
push dword [ebp + 8]
mov edi, dword [ebx + 0x58]
lea ecx, [ebx + 0x78]
mov esi, dword [ebx + 0x5c]
call fcn.00483874
mov ecx, dword [eax + 0x10]
xor eax, eax
add ecx, edi
mov dword [ebp - 0x38], ecx
adc eax, esi
xor esi, esi
push esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push ecx
push dword [ebx + 0x84]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x48226f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.0048304f
push 2
pop edi
jmp 0x482367
mov eax, 0x10000
mov dword [ebp + 0xc], esi
push eax
lea ecx, [ebp + 0xc]
call fcn.0044ea25
push dword [ebp + 8]
lea ecx, [ebx + 0x78]
mov dword [ebx + 0xd0], esi
call fcn.00483874
push dword [ebp + 8]
lea ecx, [ebx + 0x78]
mov eax, dword [eax + 8]
shr eax, 1
and eax, 0xffffff01
mov dword [ebp - 0x28], eax
call fcn.00483874
and dword [ebp - 0x20], esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [eax + 0xc]
test ecx, ecx
je 0x4822c6
mov eax, dword [ecx]
call dword [eax + 0x24]
test al, al
jne 0x48239d
mov ecx, 0x10000
mov eax, edi
cmp edi, ecx
push 0
cmova eax, ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
push esi
push dword [ebx + 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48234f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x48234f
cmp byte [ebp - 0x28], 0
je 0x482307
push eax
push esi
lea ecx, [ebx + 0xc8]
call fcn.004950dc
mov eax, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x48234f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x48234f
mov edx, dword [ebp - 0x20]
sub edi, eax
mov ecx, dword [ebp - 0x1c]
add edx, eax
mov dword [ebp + 0xc], edi
mov dword [ebp - 0x20], edx
test ecx, ecx
je 0x482347
mov edi, dword [ecx]
mov eax, edx
cdq
push edx
push eax
call dword [edi + 0x20]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp + 0xc]
test edi, edi
jg 0x4822b5
push dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
call fcn.00483874
xor edi, edi
mov byte [eax + 0x1c], 1
push esi
call fcn.004d26a2
pop ecx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x482375
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406df6
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00406df6
mov eax, edi
call fcn.004d2be2
ret 8
push 0xf
pop edi
jmp 0x482360