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

Disassembly:
push 0x2c
mov eax, 0x50b031
call fcn.004d0cf3
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.004842b2
mov ebx, eax
mov dword [ebp - 0x28], ebx
cmp byte [ebx + 0x1c], 0
je 0x4829d2
xor eax, eax
jmp 0x482dd3
push dword [ebp + 8]
mov ecx, edi
call fcn.004842b2
mov ecx, esi
push dword [eax + 4]
call fcn.00483adc
push eax
lea ecx, [ebp - 0x14]
call fcn.004073ac
push dword [ebp + 8]
mov ecx, edi
call fcn.004842b2
add eax, 0x18
lea edx, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.0047fc19
mov eax, dword [ebx + 0xc]
pop ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
call fcn.004093f6
lea ecx, [ebp - 0x1c]
call fcn.00471fc0
mov bl, al
neg bl
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00406dd3
add bl, 1
je 0x482a5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
push 0x104
call fcn.00483a8d
push 0xe
jmp 0x482b02
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
push 0
push esi
call fcn.004947c6
mov ebx, dword [ebp + 0xc]
pop ecx
pop ecx
test al, al
jne 0x482b08
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x482a8a
mov eax, dword [ecx]
push 0
push esi
push dword [ebp - 0x14]
call dword [eax]
test eax, eax
jne 0x482b08
cmp byte [0x5706cc], 0
je 0x482b00
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x14]
add eax, 0x18
lea ecx, [ebp + 0xc]
push eax
call fcn.0047fc19
pop ecx
mov esi, dword [eax]
call fcn.00406cde
push eax
lea ecx, [ebp + 8]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
push str.Not_enough_disk_space_to_extract_file:
call fcn.004072a1
test esi, esi
je 0x482ad4
push esi
lea ecx, [ebp + 8]
call fcn.004072a1
lea eax, [ebp + 8]
mov ecx, 0x57069c
push eax
call fcn.0048a377
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
push 0xa
pop edi
jmp 0x482db3
push dword [ebp + 8]
mov ecx, edi
call fcn.004842b2
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 0x482b5a
push dword [ebp + 8]
mov esi, dword [ebx]
mov ecx, edi
call fcn.004842b2
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.004842b2
lea ecx, [ebp - 0x10]
push dword [eax]
call fcn.00471620
push eax
mov ecx, ebx
call dword [esi + 0x14]
mov al, byte [ebp + 0xf]
mov ebx, dword [ebp - 0x20]
test al, al
je 0x482b70
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 0xa4]
call fcn.0046e350
lea eax, [ebx + 0xb0]
xor dl, dl
push eax
lea ecx, [ebp - 0x10]
call fcn.00471b90
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 0x482c55
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.00483a8d
cmp byte [0x5706cc], 0
je 0x482ca5
push ecx
call esi
mov edx, eax
lea ecx, [ebp + 0xc]
call fcn.0046de60
mov edi, dword [ebp - 0x10]
pop ecx
mov esi, dword [eax]
call fcn.00406cde
push eax
lea ecx, [ebp + 8]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
push str.Failed_to_extract_file:
call fcn.004072a1
test edi, edi
je 0x482c0d
push edi
lea ecx, [ebp + 8]
call fcn.004072a1
push str._Error:
lea ecx, [ebp + 8]
call fcn.004072a1
test esi, esi
je 0x482c27
push esi
lea ecx, [ebp + 8]
call fcn.004072a1
lea eax, [ebp + 8]
mov ecx, 0x57069c
push eax
call fcn.0048a377
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
jmp 0x482ca5
push dword [ebp + 8]
mov edi, dword [ebx + 0x58]
lea ecx, [ebx + 0x78]
mov esi, dword [ebx + 0x5c]
call fcn.004842b2
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 0x482cad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.00483a8d
push 2
pop edi
jmp 0x482da5
mov eax, 0x10000
mov dword [ebp + 0xc], esi
push eax
lea ecx, [ebp + 0xc]
call fcn.0044ec3e
push dword [ebp + 8]
lea ecx, [ebx + 0x78]
mov dword [ebx + 0xd0], esi
call fcn.004842b2
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.004842b2
and dword [ebp - 0x20], esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [eax + 0xc]
test ecx, ecx
je 0x482d04
mov eax, dword [ecx]
call dword [eax + 0x24]
test al, al
jne 0x482ddb
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 0x482d8d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x482d8d
cmp byte [ebp - 0x28], 0
je 0x482d45
push eax
push esi
lea ecx, [ebx + 0xc8]
call fcn.00495b47
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 0x482d8d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x482d8d
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 0x482d85
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 0x482cf3
push dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
call fcn.004842b2
xor edi, edi
mov byte [eax + 0x1c], 1
push esi
call fcn.004d0771
pop ecx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x482db3
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.00406dd3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00406dd3
mov eax, edi
call fcn.004d0cbc
ret 8
push 0xf
pop edi
jmp 0x482d9e