Function at 0x1400231e0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
mov rax, qword [0x1401f2308]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov r12, r9
mov r15, rdx
mov r13, rcx
mov rax, qword [rbp + 0x300]
mov qword [rbp - 0x68], rax
mov rcx, rdx
test rdx, rdx
je 0x14002324b
mov eax, dword [rdx]
test eax, eax
je 0x14002324b
cmp eax, 1
je 0x140023322
mov eax, dword [rcx + 4]
add rcx, 8
add rcx, rax
mov eax, dword [rcx]
test eax, eax
jne 0x140023232
lea rax, [rbp + 0x88]
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], 0x104
xor edi, edi
mov qword [rbp + 0x80], rdi
lea r8, [rbp + 0x70]
mov rcx, r13
call fcn.14001e6b0
test al, al
je 0x140023667
mov esi, edi
mov r14, qword [rbp + 0x70]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2200080
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x100080
lea r8d, [rdi + 7]
mov rcx, r14
call qword [0x1401f2088]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140023527
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x1400232cc
cmp eax, 2
jne 0x14002351f
test esi, esi
jle 0x14002351f
mov ecx, 0xc8
cmp esi, ecx
cmovl ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 0xc8
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2200080
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x100080
lea r8d, [r9 + 7]
mov rcx, r14
call qword [0x1401f2088]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400232b8
jmp 0x140023527
xor edi, edi
mov esi, edi
mov qword [rsp + 0x60], rdi
mov rdx, r13
lea rcx, [rbp - 0x80]
call qword [0x1401f2248]
mov ecx, 0xfa00
mov rax, qword [rbp - 0x80]
cmp ax, cx
jb 0x14002342d
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rsp + 0x70], xmm0
movzx eax, ax
shr rax, 1
mov ebx, 0x7d00
cmp rax, rbx
cmovb rbx, rax
psrldq xmm0, 8
movq rdx, xmm0
cmp word [rdx + rbx*2], 0x5c
je 0x14002338a
nop word [rax + rax]
dec rbx
cmp word [rdx + rbx*2], 0x5c
jne 0x140023380
lea rcx, [rbp - 0x60]
call qword [0x1401f2248]
movzx eax, bx
add ax, ax
mov word [rbp - 0x60], ax
mov rdx, qword [rsp + 0x78]
add rdx, 2
lea rdx, [rdx + rbx*2]
lea rcx, [rbp - 0x80]
call qword [0x1401f2248]
mov dword [rbp - 0x20], gethostbyaddr
mov qword [rbp - 0x18], rdi
mov dword [rbp - 8], 0x40
lea rax, [rbp - 0x60]
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
movdqu xmmword [rbp], xmm0
mov dword [rsp + 0x28], 0x21
mov dword [rsp + 0x20], 3
lea r9, [rbp + 0x10]
lea r8, [rbp - 0x20]
mov edx, 0x100000
lea rcx, [rsp + 0x60]
call qword [0x1401f21c0]
mov ebx, eax
mov ecx, eax
call qword [0x1401f21e8]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jns 0x14002342d
mov rdx, r13
lea rcx, [rbp - 0x80]
call qword [0x1401f2248]
mov qword [rsp + 0x60], rdi
mov qword [rbp - 0x48], rdi
jmp 0x140023436
mov rax, qword [rsp + 0x60]
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x50], gethostbyaddr
mov rcx, r15
mov eax, dword [r15]
test eax, eax
je 0x140023460
cmp eax, 0x17
je 0x1400234e9
mov eax, dword [rcx + 4]
add rcx, 8
add rcx, rax
mov eax, dword [rcx]
test eax, eax
jne 0x140023447
mov dword [rbp - 0x38], 0x40
lea rax, [rbp - 0x80]
mov qword [rbp - 0x40], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], 0x4020
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x20]
lea r8, [rbp - 0x50]
mov edx, 0x100080
lea rcx, [rbp - 0x70]
call qword [0x1401f2240]
mov r14d, eax
cmp eax, 0xc0000043
je 0x1400234cd
cmp eax, 0xc000000f
jne 0x1400234f1
test esi, esi
jle 0x1400234f1
mov ecx, 0xc8
cmp esi, ecx
cmovl ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 0xc8
jmp 0x140023477
mov dword [rbp - 0x38], edi
jmp 0x140023467
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140023501
call qword [0x1401f2238]
mov ecx, r14d
call qword [0x1401f21e8]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, rdi
test r14d, r14d
cmovns rbx, qword [rbp - 0x70]
jmp 0x140023542
cmp rbx, 0xffffffffffffffff
cmove rbx, rdi
lea rax, [rbp + 0x88]
mov rcx, qword [rbp + 0x70]
cmp rcx, rax
je 0x140023542
test rcx, rcx
je 0x140023542
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x140023682
lea rdx, [rbp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x140023571
lea edi, [rax - 1]
mov rcx, rbx
call qword [0x1401f2070]
mov esi, dword [rsp + 0x60]
jmp 0x140023658
mov ecx, dword [rbp + 0x30]
call fcn.140021b00
mov esi, eax
mov r14d, eax
test r12, r12
je 0x1400235c0
lea rdx, [rsp + 0x74]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x70], eax
cmp eax, 0xffffffff
jne 0x1400235b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400235b7
mov edi, 0xffffffff
mov rcx, rbx
call qword [0x1401f2070]
jmp 0x140023658
mov rax, qword [rsp + 0x70]
mov qword [r12], rax
mov rcx, rbx
call qword [0x1401f2070]
test r14b, 0x10
je 0x140023658
mov r9d, 3
mov r8d, 0x40010
mov rdx, r15
mov rcx, r13
call fcn.14001ebc0
mov rbx, rax
test rax, rax
je 0x140023682
lea rdx, [rbp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x14002360c
lea edi, [rax - 1]
jmp 0x14002364c
mov ecx, dword [rbp + 0x30]
call fcn.140021b00
mov esi, eax
test r12, r12
je 0x14002364c
lea rdx, [rsp + 0x74]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x70], eax
cmp eax, 0xffffffff
jne 0x140023643
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140023643
mov edi, 0xffffffff
jmp 0x14002364c
mov rax, qword [rsp + 0x70]
mov qword [r12], rax
mov rcx, rbx
call qword [0x1401f2070]
or esi, 0x10
mov rax, qword [rbp - 0x68]
test rax, rax
je 0x140023663
mov dword [rax], esi
mov eax, edi
jmp 0x140023687
lea rax, [rbp + 0x88]
mov rcx, qword [rbp + 0x70]
cmp rcx, rax
je 0x140023682
test rcx, rcx
je 0x140023682
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.140160900
mov rbx, qword [rsp + 0x3f0]
add rsp, 0x3a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret