Function at 0x14003930c
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 - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r14, rcx
xor ebx, ebx
xor ecx, ecx
mov qword [rsp + 0x50], rbx
mov r13d, ebx
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test r14, r14
je 0x140039720
mov rcx, r14
call fcn.14001ab20
test eax, eax
je 0x140039720
or qword [rsp + 0x48], 0xffffffffffffffff
lea rax, str.DEFAULTINSTALL
test rdi, rdi
mov dword [rsp + 0x28], 1
lea r8, [rsp + 0x70]
mov rcx, r14
cmove rdi, rax
lea rdx, [rsp + 0x48]
lea rax, str.COPYFILES
mov r9, rdi
mov qword [rsp + 0x20], rax
call fcn.14003c7c0
test eax, eax
je 0x140039707
lea rcx, [rsp + 0x70]
call fcn.14003ca58
mov qword [rsp + 0x68], rax
mov rdi, rax
test rax, rax
je 0x140039707
lea rax, [rbp - 0x70]
cmp rax, r14
je 0x140039420
lea rax, [rbp - 0x70]
mov r8, r14
sub r8, rax
lea rcx, [rbp - 0x70]
mov edx, 0x103
lea rax, [rdx + 0x7ffffefb]
test rax, rax
je 0x140039412
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140039412
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400393ef
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], bx
mov edx, 0x5c
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
nop dword [rax + rax]
test rax, rax
je 0x140039440
mov word [rax + 2], bx
jmp 0x140039444
mov word [rbp - 0x70], bx
lea r8, [rbp - 0x70]
mov ecx, 4
lea rdx, str._Current_directory_is:__S._r_n
call fcn.140019b1c
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
nop dword [rax + rax]
mov rcx, rdi
mov dword [rsp + 0x40], ebx
jmp 0x1400396db
mov r8, rdi
lea rdx, str._Parsing_INFSection:_S._r_n
mov ecx, 4
call fcn.140019b1c
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, rdi
call fcn.14001f858
test eax, eax
je 0x1400396d9
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
mov r15d, 1
call fcn.14001f904
mov dword [rsp + 0x5c], eax
mov edi, eax
cmp eax, r15d
jb 0x1400396d9
inc r15d
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x58], r15d
call fcn.14003ca58
mov rsi, rax
test rax, rax
je 0x1400396b6
lea rdx, [0x14004ca38]
mov rcx, rax
mov r12, rax
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsstr]
nop dword [rax + rax]
mov r15, rax
test rax, rax
je 0x14003959a
lea r13, [rax + 2]
mov word [rax], bx
cmp bx, word [r13]
je 0x140039595
mov eax, 0x2c
cmp ax, word [r13]
je 0x140039595
movzx ecx, word [r13]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_iswalnum]
nop dword [rax + rax]
test eax, eax
je 0x14003957e
mov esi, 1
mov rdi, r13
movzx ecx, word [rdi]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_iswalnum]
nop dword [rax + rax]
test eax, eax
jne 0x140039569
mov eax, 0x2e
cmp ax, word [rdi]
je 0x140039569
mov eax, 0x5f
cmp ax, word [rdi]
jne 0x140039574
inc esi
add rdi, 2
cmp esi, 0x20
jb 0x140039542
mov eax, esi
mov rsi, r12
mov word [r15 + rax*2], bx
or rax, 0xffffffffffffffff
inc rax
cmp word [r13 + rax*2], bx
jne 0x140039582
cmp rax, 2
cmova r12, r13
mov r13, qword [rsp + 0x50]
mov r9d, 0x104
lea r8, [rbp - 0x70]
lea rax, [rbp + 0x1a0]
mov edx, r9d
sub r8, rax
lea rcx, [rbp + 0x1a0]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400395db
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400395db
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400395b8
test rdx, rdx
lea rax, [rcx - 2]
mov r8, r12
mov rdx, r9
cmovne rax, rcx
lea rcx, [rbp + 0x1a0]
mov word [rax], bx
call fcn.140010d0c
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x1a0]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14003968e
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14003967d
mov edx, dword [rsp + 0x40]
mov r9d, eax
shl rdx, 0x20
mov r8, r12
mov ecx, eax
or rdx, rcx
mov ecx, 4
add r13, rdx
lea rdx, str._GetInstallSizeEstimate_for__S:_size:__lu._r_n
mov qword [rsp + 0x50], r13
call fcn.140019b1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x1400396a5
mov r9, r14
lea rdx, str.WARNING:_Could_not_get_size_for_file__S_for_INF__S._r_n
mov r8, r12
mov ecx, 2
call fcn.140019b1c
mov rcx, rsi
call fcn.140001454
mov r15d, dword [rsp + 0x58]
mov edi, dword [rsp + 0x5c]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
nop dword [rax + rax]
test eax, eax
je 0x1400396d9
cmp r15d, edi
jbe 0x1400394c8
xor ecx, ecx
xor r8d, r8d
lea rdx, [0x14004ca38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_wcstok]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140039475
mov rcx, qword [rsp + 0x68]
call fcn.140001454
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x140039720
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xe0000102
jne 0x140039743
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
test eax, eax
lea rcx, str.SUCCESS:_GetInstallSizeEstimate_for__S:_size:__lu._r_n
mov r9d, eax
lea rdx, str.FAILED:_GetInstallSizeEstimate_for__S:_Result:_0x_x._r_n
cmove r9d, r13d
cmove rdx, rcx
sub ebx, eax
mov r8, r14
neg ebx
sbb ecx, ecx
add ecx, 4
call fcn.140019b1c
mov rax, r13
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1400017f0
mov rbx, qword [rsp + 0x510]
add rsp, 0x4c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret