Function at 0x140034918
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 [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r12, 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]
test r12, r12
je 0x140034c65
mov rcx, r12
call fcn.140017448
test eax, eax
je 0x140034c65
or qword [rsp + 0x48], 0xffffffffffffffff
lea rax, str.COPYFILES
test rdi, rdi
mov dword [rsp + 0x28], 1
lea r9, str.DEFAULTINSTALL
mov qword [rsp + 0x20], rax
cmovne r9, rdi
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x48]
mov rcx, r12
call fcn.140030764
test eax, eax
je 0x140034c52
lea rcx, [rsp + 0x70]
call fcn.140030614
mov qword [rsp + 0x68], rax
mov rdi, rax
test rax, rax
je 0x140034c52
mov r8d, 0x103
lea rdx, [rbp - 0x70]
mov rcx, r12
call fcn.140016ab0
lea r8, [rbp - 0x70]
lea rdx, str._Current_directory_is:__S._r_n
lea ecx, [rbx + 4]
call fcn.140016868
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov rcx, rdi
mov dword [rsp + 0x40], ebx
jmp 0x140034c2f
mov r8, rdi
lea rdx, str._Parsing_INFSection:_S._r_n
mov ecx, 4
call fcn.140016868
lea rcx, str.setupapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140034a53
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call fcn.14001b05c
jmp 0x140034a55
mov eax, ebx
test eax, eax
je 0x140034c2d
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
mov r14d, 1
call fcn.14001aed0
mov dword [rsp + 0x5c], eax
mov edi, eax
cmp eax, r14d
jb 0x140034c2d
inc r14d
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x58], r14d
call fcn.140030614
mov rsi, rax
test rax, rax
je 0x140034c10
lea rdx, [0x140043808]
mov rcx, rax
mov r15, rax
call qword [sym.imp.msvcrt.dll_wcsstr]
mov r14, rax
test rax, rax
je 0x140034b3f
lea r13, [rax + 2]
mov word [rax], bx
cmp bx, word [r13]
je 0x140034b3a
mov eax, 0x2c
cmp ax, word [r13]
je 0x140034b3a
movzx ecx, word [r13]
call qword [sym.imp.msvcrt.dll_iswalnum]
test eax, eax
je 0x140034b23
mov esi, 1
mov rdi, r13
movzx ecx, word [rdi]
call qword [sym.imp.msvcrt.dll_iswalnum]
test eax, eax
jne 0x140034b0e
mov eax, 0x2e
cmp ax, word [rdi]
je 0x140034b0e
mov eax, 0x5f
cmp ax, word [rdi]
jne 0x140034b19
inc esi
add rdi, 2
cmp esi, 0x20
jb 0x140034aed
mov eax, esi
mov rsi, r15
mov word [r14 + rax*2], bx
or rax, 0xffffffffffffffff
inc rax
cmp word [r13 + rax*2], bx
jne 0x140034b27
cmp rax, 2
cmova r15, r13
mov r13, qword [rsp + 0x50]
mov edi, 0x104
lea r8, [rbp - 0x70]
mov edx, edi
lea rcx, [rbp + 0x1a0]
call fcn.140001470
mov r8, r15
lea rcx, [rbp + 0x1a0]
mov edx, edi
call fcn.140001584
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]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140034be8
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x140034bdd
mov edx, dword [rsp + 0x40]
mov r9d, eax
shl rdx, 0x20
mov r8, r15
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.140016868
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140034bff
mov r9, r12
lea rdx, str.WARNING:_Could_not_get_size_for_file__S_for_INF__S._r_n
mov r8, r15
mov ecx, 2
call fcn.140016868
mov rcx, rsi
call fcn.14003c2b8
mov r14d, dword [rsp + 0x58]
mov edi, dword [rsp + 0x5c]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x140034c2d
cmp r14d, edi
jbe 0x140034a7f
xor ecx, ecx
lea rdx, [0x140043808]
call qword [sym.imp.msvcrt.dll_wcstok]
mov rdi, rax
test rax, rax
jne 0x140034a11
mov rcx, qword [rsp + 0x68]
call fcn.14003c2b8
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x140034c65
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe0000102
jne 0x140034c7c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
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, r12
neg ebx
sbb ecx, ecx
add ecx, 4
call fcn.140016868
mov rax, r13
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.14003c6c0
mov rbx, qword [rsp + 0x510]
add rsp, 0x4c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret