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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c458
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 - 0x28], esi
mov eax, dword [ebp + 8]
lea ebx, [esi + 0x78]
mov dword [ebp - 0x1c], ebx
test eax, eax
js 0x4b0e89
cmp eax, dword [ebx + 4]
jge 0x4b0e89
mov ecx, eax
mov eax, dword [ebx]
shl ecx, 5
add eax, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x20], eax
cmp byte [eax + 0x1c], 0
je 0x4b0902
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.0x4b0914.6
movzx eax, byte [eax + 0x4b0eb4]
jmp dword [eax*4 + 0x4b0eac]
mov ecx, dword [esi + 0x70]
cmp dword [ecx - 0xc], 0
jne 0x4b0927
mov ecx, dword [esi + 0x68]
add ecx, 0xfffffff0
call fcn.0040a1d0
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 0x4b0e89
mov eax, dword [ebx]
lea edx, [ebp - 0x30]
add eax, 0x18
lea ecx, [ebp - 0x14]
add eax, dword [ebp - 0x34]
push eax
call fcn.00490be0
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
push edi
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x24], eax
call fcn.004127e0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x38]
call fcn.00494fa0
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 0x4b09b6
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 - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b09d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
jne 0x4b09fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push 0x104
call fcn.004b27f0
mov ebx, 0xe
jmp 0x4b0e2c
push 0
push dword [ebp - 0x24]
mov ecx, edi
call fcn.004bde10
add esp, 8
test al, al
jne 0x4b0ae0
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x4b0a2f
mov eax, dword [ecx]
push 0
push dword [ebp - 0x24]
push edi
call dword [eax]
test eax, eax
jne 0x4b0ae0
cmp byte [0x5d6558], 0
je 0x4b0ad6
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4b0e95
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 0x26
push str.Not_enough_disk_space_to_extract_file:
call fcn.00416df0
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x30]
add eax, 0x18
lea ecx, [ebp + 0xc]
push eax
call fcn.00490be0
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 8]
push dword [eax]
call fcn.004b5110
push eax
mov ecx, 0x5d6524
call fcn.004c8520
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 0x4b0ab8
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 0x4b0ad6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, 0xa
jmp 0x4b0e2c
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebx + 4]
jge 0x4b0e89
mov eax, dword [ebx]
add eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x4b0b4c
mov eax, dword [ebx]
push ecx
mov ecx, dword [ebp - 0x1c]
mov esi, dword [eax + 0x1c]
call fcn.004b3330
push 0
mov ecx, ebx
mov eax, dword [eax + 0xc]
push eax
call esi
mov eax, dword [ebx]
lea ecx, [ebp - 0x14]
mov esi, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
mov dword [ebp + 0xc], eax
call fcn.00494820
test al, al
je 0x4b0b35
add esi, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.004b3330
mov ecx, ebx
push dword [eax]
push esi
call dword [ebp + 0xc]
mov esi, dword [ebp - 0x28]
cmp dword [ebp - 0x38], 0xc
jne 0x4b0b61
lea eax, [ebp - 0x14]
lea ecx, [esi + 0xa4]
push eax
call fcn.0048f3e0
lea eax, [esi + 0xb0]
xor dl, dl
push eax
lea ecx, [ebp - 0x14]
call fcn.00494c80
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 - 0x34], eax
mov dword [ebp - 0x40], 0x57dd34
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0x12
cmp eax, 0xffffffff
jne 0x4b0c89
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.004b27f0
cmp byte [0x5d6558], 0
je 0x4b0cdb
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4b0e9f
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 0x17
push str.Failed_to_extract_file:
call fcn.00416df0
push dword [ebp - 0x14]
lea ecx, [ebp + 8]
call fcn.004b5110
mov esi, eax
push 7
push str._Error:
mov ecx, esi
call fcn.00416df0
push ecx
call ebx
mov edx, eax
lea ecx, [ebp + 0xc]
call fcn.004927b0
add esp, 4
mov byte [ebp - 4], 0x16
mov ecx, esi
push dword [eax]
call fcn.004b5110
push eax
mov ecx, 0x5d6524
call fcn.004c8520
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 0x4b0c61
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 0x4b0cdb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, 2
jmp 0x4b0e0c
mov ebx, dword [esi + 0x58]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [esi + 0x5c]
call fcn.004b3330
push 0
mov ecx, dword [eax + 0x10]
xor eax, eax
add ecx, ebx
mov ebx, dword [ebp - 0x28]
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 0x4b0ce5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.004b27f0
mov ebx, 2
jmp 0x4b0e0c
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x2c]
push 0x10000
call fcn.004b32b0
push dword [ebp + 8]
lea ecx, [ebx + 0x78]
mov dword [ebx + 0xd0], 0
call fcn.004b3330
push dword [ebp + 8]
lea ecx, [ebx + 0x78]
mov eax, dword [eax + 8]
shr eax, 1
and eax, 0xffffff01
mov dword [ebp - 0x38], eax
call fcn.004b3330
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [eax + 0xc]
xor eax, eax
mov dword [ebp + 0xc], edx
mov dword [ebp - 0x20], eax
nop dword [eax + eax]
test ecx, ecx
je 0x4b0d56
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
test al, al
jne 0x4b0e7f
mov edx, dword [ebp + 0xc]
cmp edx, 0x10000
mov eax, edx
mov ecx, 0x10000
push 0
cmova eax, ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
push esi
push dword [ebx + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b0de7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4b0de7
cmp byte [ebp - 0x38], 0
je 0x4b0d9b
push eax
lea ecx, [ebx + 0xc8]
push esi
call fcn.004cf600
mov eax, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push esi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b0de7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4b0de7
mov edx, dword [ebp + 0xc]
add dword [ebp - 0x20], eax
sub edx, eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 0xc], edx
test ecx, ecx
je 0x4b0ddf
mov eax, dword [ecx]
mov ebx, dword [eax + 0x20]
mov eax, dword [ebp - 0x20]
cdq
push edx
push eax
call ebx
mov ecx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp + 0xc]
test edx, edx
jg 0x4b0d40
push dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
call fcn.004b3330
xor ebx, ebx
mov byte [eax + 0x1c], 1
mov byte [ebp - 4], 0x12
push esi
call fcn.00521c5a
add esp, 4
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], 0x57dd34
test eax, eax
je 0x4b0e2c
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 0x4b0e4d
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 0x4b0e69
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 0x4b0df8
push 1
push 0xc000008c
call fcn.0040db10
push 0x80004005
call fcn.004126a0
push 0x80004005
call fcn.004126a0
nop dword [eax]
sbb ecx, dword [ecx]
dec ebx
add byte [ecx + ecx], ah
dec ebx
add byte [eax], al
add byte [ecx], al
add dword [ecx], eax
add byte [eax], al
int3