Function at 0x4b04a0
Capabilities:
Check if file exists
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c148
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp + 8]
lea ebx, [esi + 0x78]
mov dword [ebp - 0x18], ebx
test eax, eax
js 0x4b0a9a
cmp eax, dword [ebx + 4]
jge 0x4b0a9a
mov ecx, eax
mov eax, dword [ebx]
shl ecx, 5
add eax, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], eax
cmp byte [eax + 0x1c], 0
je 0x4b0512
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [eax + 4]
add eax, 0xfffffffc
cmp eax, 6
ja case.0x4b0524.6
movzx eax, byte [eax + 0x4b0ac4]
jmp dword [eax*4 + 0x4b0abc]
mov ecx, dword [esi + 0x70]
cmp dword [ecx - 0xc], 0
jne 0x4b0537
mov ecx, dword [esi + 0x68]
add ecx, 0xfffffff0
call fcn.0040be70
lea edi, [eax + 0x10]
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp eax, dword [ebx + 4]
jge 0x4b0a9a
mov eax, dword [ebx]
lea edx, [ebp - 0x30]
add eax, 0x18
lea ecx, [ebp - 0x14]
add eax, dword [ebp - 0x34]
push eax
call fcn.00490c60
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
push edi
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x28], eax
call fcn.004144e0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x38]
call fcn.00494f80
mov byte [ebp - 4], 4
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete byte [ebp - 0xd]
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b05c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b05e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
jne 0x4b060c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push 0x104
call fcn.004b2440
mov ebx, 0xe
jmp 0x4b0a3d
push 0
push dword [ebp - 0x28]
mov ecx, edi
call fcn.004bdbe0
add esp, 8
test al, al
jne 0x4b06ef
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x4b063f
mov eax, dword [ecx]
push 0
push dword [ebp - 0x28]
push edi
call dword [eax]
test eax, eax
jne 0x4b06ef
cmp byte [0x5d65b0], 0
je 0x4b06e5
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4b0aa6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 8]
push str.Not_enough_disk_space_to_extract_file:
call fcn.004b4d50
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
add ecx, 0x18
mov esi, eax
push ecx
lea ecx, [ebp + 0xc]
call fcn.00490c60
add esp, 4
mov byte [ebp - 4], 0xc
mov ecx, esi
push dword [eax]
call fcn.004b4d50
push eax
mov ecx, 0x5d657c
call fcn.004c8170
mov byte [ebp - 4], 0xb
or ebx, 0xffffffff
mov edx, dword [ebp + 0xc]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b06c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b06e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, 0xa
jmp 0x4b0a3d
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebx + 4]
jge 0x4b0a9a
mov eax, dword [ebx]
add eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x4b0761
mov eax, dword [ebx]
push ecx
mov ecx, dword [ebp - 0x18]
mov esi, dword [eax + 0x1c]
call fcn.004b2f90
push 0
mov ecx, ebx
mov eax, dword [eax + 0xc]
push eax
call esi
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004b2f90
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
call fcn.00494800
test al, al
je 0x4b0755
add esi, 8
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call dword [ebp - 0x38]
mov esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x34], 0xc
jne 0x4b0776
lea eax, [ebp - 0x14]
lea ecx, [esi + 0xa4]
push eax
call fcn.0048e320
lea eax, [esi + 0xb0]
xor dl, dl
push eax
lea ecx, [ebp - 0x14]
call fcn.00494c60
add esp, 4
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], 0x57dd44
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0x12
cmp eax, 0xffffffff
jne 0x4b0899
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push 0x104
call fcn.004b2440
cmp byte [0x5d65b0], 0
je 0x4b08eb
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4b0ab0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x15
lea ecx, [ebp + 8]
push str.Failed_to_extract_file:
call fcn.004b4d50
push dword [ebp - 0x14]
mov ecx, eax
call fcn.004b4d50
push str._Error:
mov ecx, eax
call fcn.004b4d50
push ecx
mov esi, eax
call ebx
mov edx, eax
lea ecx, [ebp + 0xc]
call fcn.00492aa0
add esp, 4
mov byte [ebp - 4], 0x16
mov ecx, esi
push dword [eax]
call fcn.004b4d50
push eax
mov ecx, 0x5d657c
call fcn.004c8170
mov byte [ebp - 4], 0x15
or ebx, 0xffffffff
mov edx, dword [ebp + 0xc]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b0871
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x12
mov eax, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b08eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, 2
jmp 0x4b0a1d
mov ebx, dword [esi + 0x58]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [esi + 0x5c]
call fcn.004b2f90
push 0
mov ecx, dword [eax + 0x10]
xor eax, eax
add ecx, ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x48], ecx
adc eax, esi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push ecx
push dword [ebx + 0x88]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4b08f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.004b2440
mov ebx, 2
jmp 0x4b0a1d
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x24]
push 0x10000
call fcn.004b2f10
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
push esi
mov dword [ebx + 0xd0], 0
call fcn.004b2f90
mov ecx, dword [ebp - 0x18]
push esi
mov eax, dword [eax + 8]
shr eax, 1
and eax, 0xffffff01
mov dword [ebp - 0x38], eax
call fcn.004b2f90
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x34], 0
mov ecx, dword [eax + 0xc]
mov dword [ebp + 0xc], ecx
nop dword [eax]
test ebx, ebx
je 0x4b0968
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x24]
call eax
test al, al
jne 0x4b0a90
mov ecx, dword [ebp + 0xc]
mov eax, ecx
cmp ecx, 0x10000
mov ecx, 0x10000
cmova eax, ecx
lea ecx, [ebp - 0x20]
push 0
push ecx
push eax
mov eax, dword [ebp - 0x1c]
push esi
push dword [eax + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b09f8
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x4b09f8
cmp byte [ebp - 0x38], 0
je 0x4b09b3
mov ecx, dword [ebp - 0x1c]
push edx
push esi
lea ecx, [ecx + 0xc8]
call fcn.004cf180
mov edx, dword [ebp - 0x20]
push 0
lea eax, [ebp - 0x20]
push eax
push edx
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b09f8
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4b09f8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x34]
sub ecx, eax
add edx, eax
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x34], edx
test ebx, ebx
je 0x4b09f0
mov eax, dword [ebx]
mov ecx, ebx
push 0
push edx
call dword [eax + 0x20]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4b0950
push dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
call fcn.004b2f90
xor ebx, ebx
mov byte [eax + 0x1c], 1
mov byte [ebp - 4], 0x12
push esi
call fcn.00521576
add esp, 4
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], 0x57dd44
test eax, eax
je 0x4b0a3d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b0a5e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x4b0a7a
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, 0xf
jmp 0x4b0a09
push 1
push 0xc000008c
call fcn.0040f790
push 0x80004005
call fcn.004143a0
push 0x80004005
call fcn.004143a0
nop
sub eax, dword [0x534004b]
dec ebx
add byte [eax], al
add byte [ecx], al
add dword [ecx], eax
add byte [eax], al
int3