Function at 0x14009a1b0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x5b8
mov qword [rsp + 0x208], 0xfffffffffffffffe
mov rax, qword [0x1403c86e8]
xor rax, rsp
mov qword [rsp + 0x5a0], rax
mov byte [rsp + 0x40], 0
mov byte [rsp + 0x42], 0
mov byte [rsp + 0x43], 0
mov qword [rsp + 0x288], 0xffffffffffffffff
mov dword [rsp + 0x290], 0x80000000
lea rax, [rsp + 0x298]
mov rcx, rax
call fcn.140010b30
nop
cmp dword [rsp + 0x5c8], 1
je 0x14009a2b1
mov edx, dword [rsp + 0x5f8]
mov ecx, dword [rsp + 0x5fc]
call fcn.140099478
mov eax, eax
sub rax, 8
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0xfffffffffffffff7
ja 0x14009a26f
mov rax, qword [rsp + 0xc0]
add rax, 8
cmp qword [rsp + 0x5d8], rax
jae 0x14009a2b1
mov dword [rsp + 0xc8], 0
mov dword [rsp + 0xcc], reloc.WS2_32.dll_select
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x3e0]
call fcn.14009051c
lea rdx, [0x1403c1ac0]
lea rcx, [rsp + 0x3e0]
call fcn.14028d944
cmp dword [rsp + 0x5c8], 1
je 0x14009a32a
mov rax, qword [rsp + 0x5d8]
cmp qword [rsp + 0x5d8], rax
jne 0x14009a2d7
mov dword [rsp + 0x78], 1
jmp 0x14009a2df
mov dword [rsp + 0x78], 0
movzx eax, byte [rsp + 0x78]
test eax, eax
jne 0x14009a32a
mov dword [rsp + 0xd0], 0
mov dword [rsp + 0xd4], reloc.WS2_32.dll_select
xor r8d, r8d
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x420]
call fcn.14009051c
lea rdx, [0x1403c1ac0]
lea rcx, [rsp + 0x420]
call fcn.14028d944
cmp dword [rsp + 0x5c8], 1
jne 0x14009a3f4
cmp dword [rsp + 0x5e0], 0xc0000000
jne 0x14009a3f4
mov rax, qword [rsp + 0x5d0]
mov rax, qword [rax]
mov qword [rsp + 0x110], rax
mov al, byte [0x1403dd9fa]
mov byte [rsp + 0x48], al
lea rax, [rsp + 0x2c8]
mov rcx, rax
call fcn.140010b30
nop
mov qword [rsp + 0x108], 0
lea rax, [rsp + 0x108]
mov qword [rsp + 0x20], rax
mov r9d, 0xc0000000
mov r8, qword [rsp + 0x110]
mov edx, 1
lea rcx, [rsp + 0x2b8]
call fcn.14009304c
nop
lea rdx, [rsp + 0x288]
lea rcx, [rsp + 0x2b8]
call fcn.140092f44
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x2b8]
call fcn.14009370c
nop
lea rax, [rsp + 0x2c8]
xor r8d, r8d
mov dl, 1
mov rcx, rax
call fcn.14001196c
nop
jmp 0x14009a6e9
cmp dword [rsp + 0x5c8], 1
jne 0x14009a4c3
cmp dword [rsp + 0x5e0], 0x80000000
jne 0x14009a4c3
mov rax, qword [rsp + 0x5d0]
mov rax, qword [rax]
mov qword [rsp + 0x120], rax
mov al, byte [0x1403dd9fa]
mov byte [rsp + 0x50], al
lea rax, [rsp + 0x2f8]
mov rcx, rax
call fcn.140010b30
nop
mov qword [rsp + 0x118], 0
lea rax, [rsp + 0x118]
mov qword [rsp + 0x20], rax
mov r9d, 0x80000000
mov r8, qword [rsp + 0x120]
mov edx, 1
lea rcx, [rsp + 0x2e8]
call fcn.14009304c
nop
lea rdx, [rsp + 0x288]
lea rcx, [rsp + 0x2e8]
call fcn.140092f44
mov byte [rsp + 0x40], 0
mov byte [rsp + 0x42], 1
lea rcx, [rsp + 0x2e8]
call fcn.14009370c
nop
lea rax, [rsp + 0x2f8]
xor r8d, r8d
mov dl, 1
mov rcx, rax
call fcn.14001196c
nop
jmp 0x14009a6e9
cmp dword [rsp + 0x5c8], 1
jne 0x14009a592
cmp dword [rsp + 0x5e0], 0xc0000001
jne 0x14009a592
mov rax, qword [rsp + 0x5d0]
mov rax, qword [rax]
mov qword [rsp + 0x130], rax
mov al, byte [0x1403dd9fa]
mov byte [rsp + 0x58], al
lea rax, [rsp + 0x328]
mov rcx, rax
call fcn.140010b30
nop
mov qword [rsp + 0x128], 0
lea rax, [rsp + 0x128]
mov qword [rsp + 0x20], rax
mov r9d, 0x80000000
mov r8, qword [rsp + 0x130]
mov edx, 1
lea rcx, [rsp + 0x318]
call fcn.14009304c
nop
lea rdx, [rsp + 0x288]
lea rcx, [rsp + 0x318]
call fcn.140092f44
mov byte [rsp + 0x40], 0
mov byte [rsp + 0x43], 1
lea rcx, [rsp + 0x318]
call fcn.14009370c
nop
lea rax, [rsp + 0x328]
xor r8d, r8d
mov dl, 1
mov rcx, rax
call fcn.14001196c
nop
jmp 0x14009a6e9
cmp dword [rsp + 0x5c8], 0
jne 0x14009a612
mov rax, qword [rsp + 0x5f0]
mov qword [rsp + 0x20], rax
mov r9d, 0xc0000000
mov rax, qword [rsp + 0x5d0]
mov r8, qword [rax]
mov dl, byte [0x1403dd9f9]
lea rcx, [rsp + 0x378]
call fcn.140092df0
nop
lea rdx, [rsp + 0x288]
lea rcx, [rsp + 0x378]
call fcn.140092f44
nop
lea rcx, [rsp + 0x378]
call fcn.14009370c
nop
lea rax, [rsp + 0x388]
xor r8d, r8d
mov dl, 1
mov rcx, rax
call fcn.14001196c
nop
mov byte [rsp + 0x40], 1
jmp 0x14009a6e9
cmp dword [rsp + 0x5c8], 2
jne 0x14009a6e9
mov byte [rsp + 0x41], 0
mov qword [rsp + 0x190], 0
mov dword [rsp + 0x198], 0
mov dword [rsp + 0x19c], 0
movzx eax, byte [rsp + 0x41]
test eax, eax
jne 0x14009a6e9
mov rax, qword [rsp + 0x5f0]
mov qword [rsp + 0x20], rax
mov r9d, 0xc0000000
mov rax, qword [rsp + 0x5d0]
mov r8, qword [rax]
mov dl, byte [0x1403dd9f9]
lea rcx, [rsp + 0x3a8]
call fcn.140092df0
mov qword [rsp + 0x210], rax
lea rdx, [rsp + 0x288]
lea rcx, [rsp + 0x3a8]
call fcn.140092f44
nop
lea rcx, [rsp + 0x3a8]
call fcn.14009370c
nop
lea rax, [rsp + 0x3b8]
xor r8d, r8d
mov dl, 1
mov rcx, rax
call fcn.14001196c
nop
mov byte [rsp + 0x40], 1
mov byte [rsp + 0x41], 1
jmp 0x14009a6d5
jmp 0x14009a6d7
lea rcx, [rsp + 0x190]
call fcn.140091094
jmp 0x14009a647
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x14009a8af
mov rdx, qword [rsp + 0x5d8]
lea rcx, [rsp + 0x288]
call fcn.140093674
mov dword [rsp + 0x30], 0xffffffff
mov rax, qword [rsp + 0x5e8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0xc0000000
lea rdx, [rsp + 0x288]
lea rcx, [rsp + 0x260]
call fcn.14009be18
mov qword [rsp + 0x200], rax
mov qword [rsp + 0x98], 0
mov rax, qword [rsp + 0x260]
mov qword [rsp + 0x98], rax
mov eax, 1
mov dword [rsp + 0xa0], eax
mov rcx, qword [rsp + 0x98]
xor eax, eax
mov edx, dword [rsp + 0xa0]
lock cmpxchg dword [rcx], edx
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jne 0x14009a804
mov rax, qword [rsp + 0x260]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x5d8]
sub rax, 8
mov rcx, qword [rsp + 0x148]
add rcx, 8
mov r9b, 1
mov r8d, eax
mov rdx, rcx
lea rcx, [rsp + 0x5f8]
call fcn.14009b5dc
mov rax, qword [rsp + 0x5c0]
lea rdx, [rsp + 0x260]
mov rcx, rax
call fcn.1400939c4
nop
jmp 0x14009a7f0
mov eax, 2
mov rcx, qword [rsp + 0x98]
xchg dword [rcx], eax
jmp 0x14009a89a
cmp dword [rsp + 0x68], 1
je 0x14009a812
cmp dword [rsp + 0x68], 2
jne 0x14009a857
mov dword [rsp + 0xd8], 0
mov dword [rsp + 0xdc], 9
xor r8d, r8d
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x460]
call fcn.14009051c
lea rdx, [0x1403c1ac0]
lea rcx, [rsp + 0x460]
call fcn.14028d944
nop
jmp 0x14009a89a
mov dword [rsp + 0xe0], 0
mov dword [rsp + 0xe4], reloc.WS2_32.dll_send
xor r8d, r8d
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x4a0]
call fcn.14009051c
lea rdx, [0x1403c1ac0]
lea rcx, [rsp + 0x4a0]
call fcn.14028d944
nop
lea rcx, [rsp + 0x260]
call fcn.140093948
nop
jmp 0x14009a8aa
jmp 0x14009acc4
xor eax, eax
cmp eax, 1
je 0x14009aadb
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0x1a0], 0
mov dword [rsp + 0x1a8], 0
mov dword [rsp + 0x1ac], 0
cmp qword [rsp + 0xb8], 0
jne 0x14009aa8e
mov rax, qword [rsp + 0x288]
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x1c0], rax
mov byte [rsp + 0x1c8], 0
movups xmm0, xmmword [rsp + 0x1c0]
movdqu xmmword [rsp + 0x220], xmm0
movups xmm0, xmmword [rsp + 0x220]
movdqu xmmword [rsp + 0x230], xmm0
movups xmm0, xmmword [rsp + 0x230]
movdqu xmmword [rsp + 0x240], xmm0
movups xmm0, xmmword [rsp + 0x240]
movdqu xmmword [rsp + 0x250], xmm0
mov rax, qword [rsp + 0x250]
mov qword [rsp + 0x158], rax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x158]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14009a997
mov dword [rsp + 0x7c], 1
jmp 0x14009a99f
mov dword [rsp + 0x7c], 0
movzx eax, byte [rsp + 0x7c]
test eax, eax
jne 0x14009aa7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0xe8], eax
mov eax, 8
imul rax, rax, 0
lea rcx, [0x140365b50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
add rax, 0x100
mov qword [rsp + 0x160], rax
jmp 0x14009aa05
mov rax, qword [rsp + 0x70]
add rax, 8
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x160]
cmp qword [rsp + 0x70], rax
je 0x14009aa37
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
cmp dword [rsp + 0x80], eax
jne 0x14009aa35
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 4]
mov dword [rsp + 0x88], eax
jmp 0x14009aa42
jmp 0x14009a9f7
mov dword [rsp + 0x88], 1
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0xec], eax
xor r8d, r8d
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x4e0]
call fcn.14009051c
lea rdx, [0x1403c1ac0]
lea rcx, [rsp + 0x4e0]
call fcn.14028d944
lea rcx, [rsp + 0x1a0]
call fcn.140091094
jmp 0x14009a8e8
cmp qword [rsp + 0xb8], 1
jne 0x14009aadb
mov dword [rsp + 0xf0], 0
mov dword [rsp + 0xf4], reloc.WS2_32.dll_send
xor r8d, r8d
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x520]
call fcn.14009051c
lea rdx, [0x1403c1ac0]
lea rcx, [rsp + 0x520]
call fcn.14028d944
movzx eax, byte [rsp + 0x42]
test eax, eax
je 0x14009aaf1
mov dword [rsp + 0x90], 0x80000000
jmp 0x14009ab20
movzx eax, byte [rsp + 0x43]
test eax, eax
je 0x14009ab07
mov dword [rsp + 0x8c], 0xc0000001
jmp 0x14009ab12
mov dword [rsp + 0x8c], 0xc0000000
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x90], eax
mov dword [rsp + 0x30], 0xffffffff
mov rax, qword [rsp + 0x5e8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x90]
lea rdx, [rsp + 0x288]
lea rcx, [rsp + 0x1d0]
call fcn.14009be18
nop
mov rax, qword [rsp + 0x1d0]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov eax, dword [rax]
mov dword [rsp + 0xa4], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x1b0], 0
mov dword [rsp + 0x1b8], 0
mov dword [rsp + 0x1bc], 0
cmp dword [rsp + 0x44], 1
je 0x14009abcb
cmp dword [rsp + 0x44], 0
jne 0x14009ac06
lea rcx, [rsp + 0x1b0]
call fcn.140091094
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x170]
mov eax, dword [rax]
mov dword [rsp + 0xa8], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x44], eax
jmp 0x14009abbd
cmp dword [rsp + 0x44], 2
je 0x14009ac4f
mov dword [rsp + 0x100], 0
mov dword [rsp + 0x104], reloc.WS2_32.dll_send
xor r8d, r8d
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x560]
call fcn.14009051c
lea rdx, [0x1403c1ac0]
lea rcx, [rsp + 0x560]
call fcn.14028d944
mov rax, qword [rsp + 0x1d8]
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x1d0]
mov qword [rsp + 0x180], rax
mov rax, qword [rsp + 0x178]
sub rax, 8
mov rcx, qword [rsp + 0x180]
add rcx, 8
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
lea rcx, [rsp + 0x5f8]
call fcn.14009b5dc
mov rax, qword [rsp + 0x5c0]
lea rdx, [rsp + 0x1d0]
mov rcx, rax
call fcn.1400939c4
nop
lea rcx, [rsp + 0x1d0]
call fcn.140093948
nop
xor eax, eax
test eax, eax
je 0x14009acf8
lea rax, [rsp + 0x288]
mov qword [rsp + 0x188], rax
mov rcx, qword [rsp + 0x5c0]
call fcn.14009b674
mov rdx, qword [rsp + 0x188]
mov rcx, rax
call fcn.140092e50
nop
lea rcx, [rsp + 0x288]
call fcn.14009370c
nop
lea rax, [rsp + 0x298]
xor r8d, r8d
mov dl, 1
mov rcx, rax
call fcn.14001196c
nop
mov rcx, qword [rsp + 0x5a0]
xor rcx, rsp
call fcn.140286010
add rsp, 0x5b8
ret