Function at 0x5ab9a8
Capabilities:
Get file size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x1c0
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov rsi, rdx
mov r12, rcx
mov eax, dword [rdx + 0x30]
test eax, eax
jne 0x5abce3
lea rdi, [rcx + 0x1c0]
mov qword [rsp + 0x20], rdi
mov rcx, rdi
call fcn.00404198
nop
lea r14, [rsi + 0x38]
lea rcx, [r12 + 0x150]
mov rdx, r14
call fcn.005a3efc
mov r13, rax
test rax, rax
jne 0x5aba5c
lea rcx, [rsp + 0x130]
call fcn.006a49e8
lea r11, [0x00798b08]
mov qword [rsp + 0x130], r11
lea rdx, [0x00890cc0]
lea rcx, [rsp + 0x148]
call fcn.004029b4
lea r11, [0x00798b08]
mov qword [rsp + 0x130], r11
lea rdx, [0x00850e08]
lea rcx, [rsp + 0x130]
call fcn.006ab82c
int3
mov ebp, 1
cmp byte [rsi + 0x10], 0
je 0x5abb37
mov byte [rsi + 0x10], 0
mov r8, qword [rax + 0x68]
cmp r8, qword [rax + 0x70]
je 0x5abae3
mov rdx, qword [r8]
cmp rdx, rsi
je 0x5aba9c
mov r9, qword [rdx]
mov rcx, qword [rsi]
cmp r9, rcx
jg 0x5aba9c
mov rax, qword [rdx + 8]
add rcx, qword [rsi + 8]
add rax, r9
cmp rax, rcx
je 0x5abaa8
add r8, 8
cmp r8, qword [r13 + 0x70]
je 0x5abae3
jmp 0x5aba79
mov rax, qword [r8]
mov rcx, qword [rax + 0x90]
mov r12, qword [rcx + 0xf8]
test r12, r12
je 0x5abb37
lea rcx, [r12 + 0x60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r8d, r8d
mov edx, ebp
mov rcx, r12
call fcn.00617e90
lea rcx, [r12 + 0x60]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x5abb37
lea rcx, [rsp + 0xe8]
call fcn.006a49e8
lea r11, [0x00798b08]
mov qword [rsp + 0xe8], r11
lea rdx, [0x00889280]
lea rcx, [rsp + 0x100]
call fcn.004029b4
lea r11, [0x00798b08]
mov qword [rsp + 0xe8], r11
lea rdx, [0x00850e08]
lea rcx, [rsp + 0xe8]
call fcn.006ab82c
int3
lea rdx, [rsi + 0xa0]
mov rax, qword [rdx + 0x28]
cmp rax, qword [rdx + 0x20]
cmove rdx, r14
lea rcx, [rsp + 0x70]
call fcn.004029b4
nop
lea rcx, [rsp + 0x70]
call fcn.00595338
mov ecx, 0x18
call fcn.006a494c
mov qword [rsp + 0x208], rax
test rax, rax
je 0x5abb94
mov r9d, reloc.WS2_32.dll_inet_addr
mov r8d, 0x40000000
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.005944d4
mov rbx, rax
jmp 0x5abb96
xor ebx, ebx
mov rax, qword [0x00862cb8]
cmp byte [rax + 0x30d0], 0
jne 0x5abbbe
mov rcx, qword [rax + 0xb8]
test rcx, rcx
je 0x5abbbe
mov edx, 0x250
call fcn.0041024c
jmp 0x5abbc4
mov al, byte [rax + 0x2cf1]
test al, al
je 0x5abc1c
lea rdx, [rsp + 0x218]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
or edx, 0xffffffff
cmp eax, edx
jne 0x5abbf3
lea rcx, [rsp + 0x218]
call fcn.00594950
mov r11, rax
jmp 0x5abc04
mov r11d, dword [rsp + 0x218]
shl r11, 0x20
mov eax, eax
or r11, rax
cmp r11, qword [r13 + 0xb8]
je 0x5abc1c
mov rdx, qword [rsi + 0x128]
mov rcx, rbx
call fcn.00594984
mov rax, qword [rsi]
sar rax, 0x20
mov dword [rsp + 0x30], eax
xor r9d, r9d
lea r8, [rsp + 0x30]
mov edx, dword [rsi]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r11, [rbx + 8]
mov qword [rsi + 0xd0], r11
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
cmp rcx, rax
je 0x5abc7d
test rcx, rcx
je 0x5abc7d
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
mov r12d, 0x100
cmp rdx, r12
jbe 0x5abc77
call fcn.006a4944
jmp 0x5abc7d
call fcn.006a3610
nop
mov eax, ebp
xchg dword [rdi + 0x14], eax
cmp eax, ebp
jne 0x5abc9a
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11d, ebp
xchg dword [rdi + 0x14], r11d
cmp r11d, ebp
je 0x5abc86
mov rax, qword [rsp + 0x20]
dec dword [rax]
mov rax, qword [rsp + 0x20]
mov edx, dword [rax + 4]
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax]
add edx, ecx
jne 0x5abcd9
mov rax, qword [rsp + 0x20]
mov edx, dword [rax + 0xc]
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 8]
add edx, ecx
test edx, edx
jle 0x5abcd9
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
lock add dword [rdi + 0x14], 0xffffffff
jmp 0x5abfdd
mov ebp, 1
cmp eax, ebp
jne 0x5abf72
lea rax, [rsp + 0x38]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0xa0], 0x20
or qword [rsp + 0xb0], 0xffffffffffffffff
or qword [rsp + 0x68], 0xffffffffffffffff
xor eax, eax
mov byte [rsp + 0x208], al
mov byte [rsp + 0x210], al
mov byte [rsp + 0x38], al
lea rbx, [rcx + 0x1c0]
mov qword [rsp + 0x28], rbx
mov rcx, rbx
call fcn.004040ec
nop
lea rdx, [rsi + 0x38]
lea rcx, [r12 + 0x150]
call fcn.005a3efc
mov rdi, rax
test rax, rax
jne 0x5abdb5
lea rcx, [rsp + 0x178]
call fcn.006a49e8
lea r11, [0x00798b08]
mov qword [rsp + 0x178], r11
lea rdx, [0x00890cc0]
lea rcx, [rsp + 0x190]
call fcn.004029b4
lea r11, [0x00798b08]
mov qword [rsp + 0x178], r11
lea rdx, [0x00850e08]
lea rcx, [rsp + 0x178]
call fcn.006ab82c
int3
mov rax, qword [rsi + 8]
mov qword [rdi + 0xb8], rax
mov eax, dword [rsi + 0x98]
and al, 8
cmp al, 8
sete al
lea rcx, str..xml.bz2.dctmp
lea r8, str..xml.dctmp
test al, al
cmovne r8, rcx
lea rdx, [rdi + 0x80]
lea rcx, [rsp + 0xb8]
call fcn.00402658
nop
lea rcx, [rsp + 0x38]
cmp rax, rcx
je 0x5abe13
mov r8, qword [rax + 0x20]
mov rdx, qword [rax + 0x28]
lea rcx, [rsp + 0x38]
call fcn.0040289c
nop
lea rax, [rsp + 0xb8]
mov r12d, 0x100
mov rcx, qword [rsp + 0xe0]
cmp rcx, rax
je 0x5abe4f
test rcx, rcx
je 0x5abe4f
mov rdx, qword [rsp + 0xb8]
sub rdx, rcx
cmp rdx, r12
jbe 0x5abe4a
call fcn.006a4944
jmp 0x5abe4f
call fcn.006a3610
lea rcx, [rdi + 0x108]
lea rax, [rsp + 0x38]
cmp rax, rcx
je 0x5abe70
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
call fcn.0040289c
nop
mov eax, ebp
xchg dword [rbx + 0x14], eax
cmp eax, ebp
jne 0x5abe8d
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11d, ebp
xchg dword [rbx + 0x14], r11d
cmp r11d, ebp
je 0x5abe79
mov rax, qword [rsp + 0x28]
add dword [rax + 4], 0xffffffff
mov eax, dword [rax + 4]
jne 0x5abec4
mov rax, qword [rsp + 0x28]
and dword [rax + 0x10], 0
mov edx, dword [rax + 0xc]
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 8]
add edx, ecx
test edx, edx
jle 0x5abec4
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
lock add dword [rbx + 0x14], 0xffffffff
lea rcx, [rsp + 0x38]
call fcn.00595338
lea rcx, [rsi + 0xa0]
lea rax, [rsp + 0x38]
cmp rax, rcx
je 0x5abef3
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
call fcn.0040289c
mov ecx, 0x18
call fcn.006a494c
mov qword [rsp + 0x208], rax
test rax, rax
je 0x5abf25
mov r9d, 7
mov r8d, 0x40000000
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.005944d4
jmp 0x5abf27
xor eax, eax
test rax, rax
je 0x5abf32
add rax, 8
jmp 0x5abf34
xor eax, eax
mov qword [rsi + 0xd0], rax
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
je 0x5abfdd
test rcx, rcx
je 0x5abfdd
mov rdx, qword [rsp + 0x38]
sub rdx, rcx
cmp rdx, r12
jbe 0x5abf6b
call fcn.006a4944
jmp 0x5abfdd
call fcn.006a3610
jmp 0x5abfdd
cmp eax, 2
jne 0x5abfa6
lea ecx, [rax + 0xe]
call fcn.006a494c
test rax, rax
je 0x5abf9b
lea rcx, [0x007a0c78]
mov qword [rax], rcx
lea rcx, [rsi + 0x138]
mov qword [rax + 8], rcx
jmp 0x5abf9d
xor eax, eax
mov qword [rsi + 0xd0], rax
jmp 0x5abfdd
cmp eax, 3
jne 0x5abfdd
lea ecx, [rax + 0x2d]
call fcn.006a494c
test rax, rax
je 0x5abfd4
lea rcx, [0x007b49b0]
mov qword [rax], rcx
lea rcx, [rsi + 0xe0]
mov qword [rax + 8], rcx
and qword [rax + 0x28], 0
jmp 0x5abfd6
xor eax, eax
mov qword [rsi + 0xd0], rax
add rsp, 0x1c0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret