Function at 0x4730e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
cmp dword [0x5409f8], 0
xorps xmm0, xmm0
push ebx
push edi
movlpd qword [ebp - 0x18], xmm0
mov ebx, 1
jne 0x47310f
push 0
push 0
call fcn.00474680
add esp, 8
mov dword [0x5409f8], eax
push 0x4b8
call fcn.00499907
mov edi, eax
add esp, 4
test edi, edi
je 0x473604
push 0x38
mov dword [edi + 0x20], 2
call fcn.00499907
add esp, 4
test eax, eax
je 0x4735f5
mov byte [eax + 8], 0
push 0x6f28
mov dword [edi + 0x4ac], eax
call fcn.00499907
add esp, 4
test eax, eax
jne 0x473173
mov dword [edi + 0x4a8], eax
push dword [edi + 0x4ac]
call fcn.004998ec
add esp, 4
jmp 0x4735fb
push esi
mov dword [eax + 0x3c], 2
mov dword [eax + 0x34], 0x4000000
mov dword [eax + 0x18], 0
mov dword [eax + 0x38], 0
push edi
mov dword [edi + 0x4a8], eax
call fcn.00473d40
push dword [section..data]
call fcn.00499907
push dword [section..data]
mov esi, eax
mov dword [ebp - 0xc], esi
call fcn.00499907
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], eax
mov eax, dword [section..data]
mov dword [ebp - 0x34], esi
xor esi, esi
xor edx, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
cmp esi, edx
jne 0x4732b6
mov eax, dword [ebp + 8]
mov esi, dword [section..data]
mov eax, dword [eax + 8]
test eax, eax
js 0x473430
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x473423
mov ecx, dword [0x540a10]
test ecx, ecx
je 0x47321e
cmp dword [ecx], 0
jne 0x473416
cmp eax, dword [0x4f2004]
jne 0x473259
mov ecx, dword [0x4f9dd0]
mov edx, dword [0x4f9dcc]
lea eax, [ecx + esi]
cmp eax, edx
jbe 0x47323d
mov esi, edx
sub esi, ecx
mov eax, dword [0x4f9dc8]
push esi
add eax, ecx
push eax
push dword [ebp - 0xc]
call fcn.00493080
add esp, 0xc
add dword [0x4f9dd0], esi
jmp 0x473274
mov ecx, dword [0x4f9de0]
push esi
push edx
push eax
test ecx, ecx
je 0x47326a
call ecx
jmp 0x47326f
call fcn.004a6072
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x4732a6
mov ecx, dword [0x540a08]
mov eax, esi
cdq
add ecx, eax
mov eax, dword [0x540a0c]
mov dword [0x540a08], ecx
adc eax, edx
mov edx, dword [0x4f9dd8]
mov dword [0x540a0c], eax
test edx, edx
je 0x4732a6
push eax
push ecx
call edx
add esp, 8
mov dword [ebp - 0x2c], esi
test esi, esi
js 0x47343b
xor esi, esi
mov dword [ebp - 0x30], esi
cmp dword [edi + 0x20], 0
jne 0x4732f8
push 0x60
lea eax, [edi + 0x40]
mov dword [edi], 0
push 0
push eax
mov byte [edi + 0x24], 0
mov dword [edi + 4], 0
mov dword [edi + 0x18], 0
call fcn.00493600
add esp, 0xc
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0xc
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push edi
mov dword [ebp - 0x10], esi
call fcn.00471f50
mov esi, dword [ebp - 0x30]
add esp, 8
cmp dword [edi + 0x20], 0
mov ebx, eax
jne 0x47333e
test ebx, ebx
jne 0x473326
cmp esi, dword [ebp - 0x2c]
setne bl
add ebx, 7
cmp ebx, 1
je 0x473339
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x24], ecx
jmp 0x473364
mov ecx, dword [ebp - 0x24]
jmp 0x473364
mov ecx, dword [ebp - 0x24]
test ebx, ebx
jne 0x473360
cmp dword [ebp - 0x10], esi
jne 0x473360
cmp dword [ebp - 0x14], ecx
jne 0x473360
cmp byte [edi + 0x24], bl
mov eax, 8
mov byte [edi + 0x24], 1
cmovne ebx, eax
jmp 0x473364
mov byte [edi + 0x24], 0
mov eax, dword [ebp - 0x28]
cmp ecx, dword [section..data]
jne 0x47339c
push ecx
push eax
push dword [ebp + 8]
call fcn.00474580
add esp, 0xc
cmp eax, 0xffffffe4
je 0x47358b
test eax, eax
js 0x473549
cdq
add dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
adc dword [ebp - 8], edx
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4731e4
cmp ebx, 2
jne 0x4733de
mov eax, dword [0x4f9dd4]
push str._nError:_unsupported_check__not_verifying_file_integrity
test eax, eax
je 0x4733c7
call eax
mov edx, dword [ebp - 0x2c]
add esp, 4
jmp 0x4731e4
call fcn.00426280
push 0xa
call fcn.004a4961
add esp, 8
mov edx, dword [ebp - 0x2c]
jmp 0x4731e4
push ecx
push eax
push dword [ebp + 8]
call fcn.00474580
add esp, 0xc
cmp eax, 0xffffffe4
je 0x47358b
test eax, eax
js 0x473549
cdq
add dword [ebp - 4], eax
lea eax, [ebx - 1]
adc dword [ebp - 8], edx
cmp eax, 8
ja case.0x47340f.2
jmp dword [eax*4 + 0x473658]
call fcn.004a4801
mov dword [eax], 4
jmp 0x47343b
call fcn.004a4801
mov dword [eax], 0xe
jmp 0x47343b
call fcn.004a4801
mov dword [eax], 9
cmp dword [0x4f9dd4], 0
je 0x47345e
call fcn.004a4801
push dword [eax]
push str._nError:_read_error__errno:__d_
call dword [0x4f9dd4]
add esp, 8
jmp 0x473590
call fcn.004a4801
push dword [eax]
push str._nError:_read_error__errno:__d_
call fcn.00426280
push 0xa
call fcn.004a4961
add esp, 0xc
jmp 0x473590
xor ebx, ebx
jmp 0x473590
mov eax, dword [0x4f9dd4]
push 0x4bcd28
test eax, eax
je 0x4734a8
call eax
add esp, 4
jmp 0x473590
call fcn.00426280
push 0xa
call fcn.004a4961
add esp, 8
jmp 0x473590
mov eax, dword [0x4f9dd4]
push str._nError:_memory_usage_limit_error
test eax, eax
je 0x4734a8
call eax
add esp, 4
jmp 0x473590
mov eax, dword [0x4f9dd4]
push str._nError:_not_a_.xz_file
test eax, eax
je 0x4734a8
call eax
add esp, 4
jmp 0x473590
mov eax, dword [0x4f9dd4]
push str._nError:_unsupported_XZ_header_option
test eax, eax
je 0x4734a8
call eax
add esp, 4
jmp 0x473590
mov eax, dword [0x4f9dd4]
push str._nError:_corrupted_archive
test eax, eax
je 0x4734a8
call eax
add esp, 4
jmp 0x473590
mov eax, dword [0x4f9dd4]
push str._nError:_corrupted_buffer
test eax, eax
je 0x4734a8
call eax
add esp, 4
jmp 0x473590
mov eax, dword [0x4f9dd4]
push str._nError:_XZ_decompression_bug_
test eax, eax
je 0x4734a8
call eax
add esp, 4
jmp 0x473590
cmp dword [0x4f9dd4], 0
mov ebx, 7
je 0x47356e
call fcn.004a4801
push dword [eax]
push str._nError:_write_error__errno:__d_
call dword [0x4f9dd4]
add esp, 8
jmp 0x473590
call fcn.004a4801
push dword [eax]
push str._nError:_write_error__errno:__d_
call fcn.00426280
push 0xa
call fcn.004a4961
add esp, 0xc
jmp 0x473590
mov ebx, 9
mov esi, dword [edi + 0x4a8]
cmp dword [esi + 0x3c], 0
je 0x4735a7
push dword [esi + 0x18]
call fcn.004998ec
add esp, 4
push esi
call fcn.004998ec
push dword [edi + 0x4ac]
call fcn.004998ec
push edi
call fcn.004998ec
push dword [ebp - 0xc]
call fcn.004998ec
push dword [ebp - 0x1c]
call fcn.004998ec
add esp, 0x14
pop esi
test ebx, ebx
jne 0x4735e2
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 9
jne 0x47364d
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
pop ebx
mov eax, dword [eax + 0x20]
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x4ac], eax
push edi
call fcn.004998ec
add esp, 4
mov eax, dword [0x4f9dd4]
push 0x4bcd28
test eax, eax
je 0x473630
call eax
push 0
call fcn.004998ec
push 0
call fcn.004998ec
add esp, 0xc
neg ebx
mov eax, ebx
cdq
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00426280
push 0xa
call fcn.004a4961
push 0
call fcn.004998ec
push 0
call fcn.004998ec
add esp, 0x10
neg ebx
mov eax, ebx
pop edi
cdq
pop ebx
mov esp, ebp
pop ebp
ret