Function at 0x140037288
Capabilities:
Create thread
Get disk information

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x308
mov al, r9b
mov ebx, 1
mov rbp, rdx
and al, 0xf
mov rsi, rcx
mov dword [rsp + 0x50], ebx
mov byte [rsp + 0x330], al
call fcn.1400d4710
xor ecx, ecx
test byte [rsp + 0x348], 0xf0
lea edi, [rax + 0x20d]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x58], edi
jne 0x1400372ff
cmp eax, 4
jle 0x1400372ff
cdqe
lea rdx, [0x1400f4b98]
lea rcx, [rsi + rax*2 - 8]
call fcn.1400d4934
xor ecx, ecx
mov dword [rsp + 0x60], ebx
cmp eax, ecx
je 0x140037303
mov dword [rsp + 0x60], ecx
lea eax, [rdi + 0x325]
lea rcx, [rsp + 0x88]
movsxd rdx, eax
call fcn.140058200
mov rdi, qword [rsp + 0x88]
movsxd rax, dword [rsp + 0x58]
lea rcx, [rdi + rax*2]
mov r11d, 0x5c
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x48], rcx
cmp word [rsi], r11w
jne 0x1400373bc
mov rdx, rcx
mov ecx, 0x324
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov rcx, qword [rsp + 0x48]
jmp 0x1400373b0
mov r8, rcx
lea r9, [rsi + 2]
lea rdx, str._s_s
mov rcx, rdi
call fcn.140014d54
mov r9b, byte [rsp + 0x348]
mov r8, qword [rsp + 0x340]
xor eax, eax
mov rdx, rbp
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140037288
neg eax
sbb ecx, ecx
and ebx, ecx
mov rcx, qword [rsp + 0x48]
call fcn.1400d4710
mov rcx, qword [rsp + 0x48]
inc eax
lea rcx, [rcx + rax*2]
mov qword [rsp + 0x48], rcx
xor eax, eax
cmp word [rcx], ax
jne 0x140037358
jmp 0x140037be7
mov r10, qword [rsp + 0x70]
mov rdx, rsi
mov rcx, rdi
lea ebp, [r10 + 1]
movsxd r8, ebp
add r8, r8
call fcn.14001aac4
mov rcx, qword [rsp + 0x338]
movzx eax, word [rcx + 0x54]
shl eax, 0x10
mov dword [rsp + 0x48], eax
xor eax, eax
lea r8d, [rax + 0x2e]
cmp dword [rsp + 0x60], eax
jne 0x140037881
cmp byte [rsp + 0x330], al
jne 0x140037424
movsxd rax, r10d
lea rdx, str.INF.INF
mov r8d, 0x16
lea rcx, [rdi + rax*2]
call fcn.14001aac4
lea ebp, [r10 + 5]
jmp 0x14003787d
mov rdx, qword [rsp + 0x350]
cmp rdx, rax
jne 0x140037449
movsxd rax, r10d
lea rdx, str._________allinf_file_
lea rcx, [rdi + rax*2]
call fcn.14001aac4
mov rdx, rdi
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x68]
mov r9d, 7
mov r8d, 0xc0000000
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], rax
call fcn.140003568
mov rsi, rax
mov qword [rsp + 0xa0], rax
xor eax, eax
cmp rsi, rax
je 0x140037862
lea rcx, [rsp + 0x330]
mov edx, 0x2800
call fcn.140058200
mov rcx, qword [rsp + 0x330]
lea r8, str.Found___s_
mov r9, rdi
mov edx, 0x27ff
call fcn.1400d54a8
mov rbx, qword [rsp + 0x338]
mov rdx, qword [rsp + 0x330]
mov rcx, qword [rbx + 8]
xor ebp, ebp
xor r8d, r8d
lea r9d, [rbp + 0x11]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call fcn.140026b88
lea rcx, [rsp + 0x330]
call fcn.14005041c
mov rcx, rsi
call fcn.1400c3794
lea r8d, [rbp + 8]
xor r9d, r9d
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.1400c1e64
mov rcx, rax
mov qword [rsp + 0x98], rax
cmp rax, rbp
jne 0x14003753d
cmp rsi, 0xffffffffffffffff
je 0x140037533
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
jmp 0x140037be7
mov rax, rdi
lea rbp, [rcx + rdi]
mov rsi, rcx
cqo
and edx, 3
add rax, rdx
sar rax, 2
add rax, 0xffff
and rax, 0xffffffffffff0000
mov qword [rsp + 0xa8], rax
mov eax, dword [rcx]
and eax, 0xffffff
cmp eax, 0xbfbbef
jne 0x1400375b0
lea rsi, [rcx + 3]
jmp 0x1400375b0
cmp rsi, rbp
jae 0x1400375b5
movsx eax, byte [rsi]
cmp ax, 0xa
je 0x1400375ab
cmp ax, 0xd
je 0x1400375ab
inc rsi
cmp rsi, rbp
jae 0x1400375b0
jmp 0x140037580
movsx eax, byte [rsi]
cmp ax, 0xa
je 0x1400375a8
cmp ax, 0xd
jne 0x1400375b0
inc rsi
cmp rsi, rbp
jb 0x140037599
cmp byte [rsi], 0x23
je 0x14003757b
xor eax, eax
lea rcx, [rsp + 0x78]
lea edx, [rax + 0x28]
mov qword [rsp + 0x68], rax
call fcn.140057f14
mov rcx, qword [rsp + 0x78]
call fcn.140050400
mov rax, qword [rsp + 0x78]
xor r8d, r8d
dec rbp
lea edx, [r8 + 9]
mov qword [rsp + 0x80], rax
movsx ecx, byte [rbp]
mov rax, r8
mov qword [rsp + 0x48], rax
cmp dx, cx
ja 0x140037601
cmp cx, 0xd
jbe 0x140037667
mov edx, 0x20
cmp dx, cx
je 0x140037667
cmp byte [rbp], 0x23
je 0x140037667
cmp rbp, rsi
jbe 0x140037642
movsx eax, byte [rbp]
cmp ax, 0xa
je 0x14003762b
cmp ax, 0xd
je 0x14003762b
dec rbp
jmp 0x140037611
lea rax, [rbp + 1]
cmp byte [rax], 0x23
jne 0x140037642
mov byte [rbp], r8b
mov qword [rsp + 0x48], rax
cmp rax, r8
jne 0x14003766b
lea rdx, [rdi + 0x10]
lea rcx, [rsp + 0x68]
call fcn.140057f90
mov rsi, qword [rsp + 0x68]
mov rax, qword [rsp + 0x48]
lea rbp, [rsi + rdi]
xor r8d, r8d
mov qword [rbp], r8
jmp 0x14003766b
mov byte [rbp], r8b
mov edi, r8d
mov dword [rsp + 0x348], r8d
mov qword [rsp + 0x60], r8
cmp rsi, rbp
jae 0x1400376be
mov rax, qword [rsp + 0xa8]
add rax, rsi
mov qword [rsp + 0x330], rax
cmp rax, rbp
jae 0x1400376e0
lea rdx, str._n_INFFILE_
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrStrA]
xor ecx, ecx
cmp rax, rcx
je 0x1400376d8
mov byte [rax], cl
inc rax
mov qword [rsp + 0x330], rax
jmp 0x1400376e0
cmp rax, r8
je 0x1400377c0
cmp byte [rax], 0x23
je 0x1400377c0
mov rsi, rax
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x330], rbp
lea rcx, [rsp + 0x50]
mov edx, 0x28
call fcn.140057f14
mov rcx, qword [rsp + 0x50]
call fcn.140050400
mov rdi, qword [rsp + 0x50]
movsxd rdx, dword [rsp + 0x58]
lea rcx, [rdi + 8]
mov qword [rdi], rbx
call fcn.14005828c
mov r10, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rdi + 8]
lea r11d, [r10 + 0x17]
movsxd r8, r11d
add r8, r8
call fcn.14001aac4
movsxd rcx, r10d
lea rax, [0x14010d940]
mov qword [rdi + 0x20], rcx
mov qword [rsp + 0x28], rax
lea r8, [0x140036eac]
xor ecx, ecx
mov r9, rdi
mov edx, 0x20000
mov dword [rsp + 0x20], 0x10000
mov qword [rdi + 0x10], rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x330]
mov qword [rdi + 0x18], rax
mov rax, qword [rsp + 0x60]
mov qword [rcx + rax*8], rdi
mov edi, dword [rsp + 0x348]
inc rax
mov qword [rsp + 0x60], rax
xor eax, eax
lea rcx, [rsp + 0x50]
inc edi
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x348], edi
call fcn.14005041c
mov rbx, qword [rsp + 0x338]
mov rax, qword [rsp + 0x48]
xor r8d, r8d
jmp 0x14003767b
mov rsi, qword [rsp + 0x60]
mov rbx, r8
cmp rsi, r8
jle 0x1400377f8
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rdi + rbx*8]
or edx, 0xffffffff
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
inc rbx
cmp rbx, rsi
jl 0x1400377d5
mov edi, dword [rsp + 0x348]
xor r8d, r8d
dec edi
movsxd rbx, edi
cmp rbx, r8
jl 0x140037829
mov rax, qword [rsp + 0x80]
lea rcx, [rsp + 0x338]
mov rax, qword [rax + rbx*8]
mov qword [rsp + 0x338], rax
call fcn.14005041c
sub rbx, 1
jns 0x140037802
lea rcx, [rsp + 0x78]
call fcn.14005041c
lea rcx, [rsp + 0x68]
call fcn.14005041c
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0xa0]
cmp rcx, 0xffffffffffffffff
je 0x140037533
jmp 0x14003752d
movsxd rax, dword [rsp + 0x70]
lea rdx, str..INF
mov r8d, 0x16
lea rcx, [rdi + rax*2]
call fcn.14001aac4
xor eax, eax
jmp 0x1400378a7
mov r8d, r11d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov rbp, rax
xor eax, eax
cmp rbp, rax
je 0x1400378a5
sub rbp, rsi
add rbp, 2
sar rbp, 1
jmp 0x1400378a7
mov ebp, eax
lea rcx, [rsp + 0xb4]
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0xb0], eax
call fcn.1400d4180
xor eax, eax
lea r8, [rsp + 0xb0]
lea rcx, [rsp + 0x40]
mov rdx, rdi
mov qword [rsp + 0x40], rax
call fcn.1400d3748
mov rsi, qword [rsp + 0x338]
xor r11d, r11d
cmp qword [rsp + 0x40], r11
je 0x1400379d9
lea rcx, [rsp + 0xdc]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [rsp + 0xdc]
inc eax
movsxd r8, eax
movsxd rax, ebp
lea rcx, [rdi + rax*2]
add r8, r8
call fcn.14001aac4
mov rax, qword [rsp + 0x340]
test rax, rax
je 0x14003793e
mov r8, rdi
mov rdx, rax
mov rcx, rsi
call fcn.140017220
test al, al
je 0x1400379a1
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.14002d7c4
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x58], rax
cmp byte [rsi + 0x5f], r8b
jne 0x140037989
cmp rax, r8
je 0x140037997
mov eax, r8d
mov dword [rsp + 0x338], eax
cmp byte [rsi + 0x60], r8b
je 0x1400379f9
mov r8d, dword [rsp + 0x48]
mov rdx, rdi
mov rcx, rsi
call fcn.14002dc74
xor r8d, r8d
mov rax, qword [rsp + 0x58]
cmp rax, r8
je 0x140037997
mov word [rax], r8w
mov eax, dword [rsp + 0x50]
neg eax
sbb ecx, ecx
and ebx, ecx
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor r11d, r11d
cmp eax, r11d
jne 0x1400378f5
mov rcx, qword [rsp + 0x40]
cmp rcx, r11
je 0x1400379d9
cmp rcx, 0xffffffffffffffff
je 0x1400379d9
call qword [sym.imp.KERNEL32.dll_FindClose]
xor r11d, r11d
cmp byte [rsp + 0x330], 1
mov qword [rsp + 0x40], r11
je 0x140037ac8
mov qword [rsp + 0x40], r11
mov ebx, r11d
jmp 0x140037be7
cmp byte [rsi + 0x5c], 3
je 0x140037a05
cmp byte [rsi + 0x5e], r8b
je 0x140037a75
mov rdx, qword [rsp + 0x50]
cmp byte [rsi + 0x5e], r8b
je 0x140037a2c
mov r8, rcx
or r9d, 0xffffffff
mov rdx, rdi
mov rcx, rsi
call fcn.14002e620
mov rdx, rax
mov qword [rsp + 0x50], rax
jmp 0x140037a4b
cmp byte [rsi + 0x5c], 3
jne 0x140037a5a
mov r8, rcx
or r9d, 0xffffffff
mov rdx, rdi
mov rcx, rsi
call fcn.14002e79c
mov edx, eax
mov qword [rsp + 0x50], rdx
mov rcx, qword [rsp + 0x58]
mov eax, dword [rsp + 0x338]
xor r8d, r8d
inc eax
cmp eax, 2
mov dword [rsp + 0x338], eax
jge 0x140037989
cmp edx, r8d
je 0x140037989
mov r9d, dword [rsp + 0x48]
mov qword [rsp + 0x28], r8
or dword [rsp + 0x20], 0xffffffff
mov rdx, rcx
mov r8, rdi
mov rcx, rsi
call fcn.14002dac0
mov edx, eax
mov eax, dword [rsp + 0x338]
inc eax
mov qword [rsp + 0x50], rdx
cmp eax, 2
mov dword [rsp + 0x338], eax
jge 0x140037986
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
cmp edx, r8d
jne 0x140037a0a
jmp 0x140037989
mov r10, qword [rsp + 0x70]
lea rdx, [0x1400f5928]
mov r8d, 0xc
movsxd rax, r10d
lea rcx, [rdi + rax*2]
call fcn.14001aac4
lea r8, [rsp + 0xb0]
lea rcx, [rsp + 0x40]
mov rdx, rdi
lea ebp, [r10 + 1]
mov word [rsp + 0xe0], r11w
call fcn.1400d3748
xor edx, edx
cmp qword [rsp + 0x40], rdx
jne 0x140037b18
mov ebx, edx
jmp 0x140037be2
test byte [rsp + 0xb0], 0x10
je 0x140037bad
mov ecx, 0x2e
cmp cx, word [rsp + 0xdc]
jne 0x140037b51
movzx eax, word [rsp + 0xde]
cmp ax, dx
je 0x140037bad
cmp cx, ax
jne 0x140037b51
cmp word [rsp + 0xe0], dx
je 0x140037bad
lea rcx, [rsp + 0xdc]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [rsp + 0xdc]
inc eax
movsxd r8, eax
movsxd rax, ebp
lea rcx, [rdi + rax*2]
add r8, r8
call fcn.14001aac4
mov r9b, byte [rsp + 0x348]
mov r8, qword [rsp + 0x340]
xor eax, eax
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140037288
neg eax
sbb ecx, ecx
and ebx, ecx
xor eax, eax
mov word [rsp + 0xe0], ax
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor edx, edx
cmp eax, edx
jne 0x140037b18
mov rcx, qword [rsp + 0x40]
cmp rcx, rdx
je 0x140037be2
cmp rcx, 0xffffffffffffffff
je 0x140037be2
call qword [sym.imp.KERNEL32.dll_FindClose]
xor edx, edx
mov qword [rsp + 0x40], rdx
lea rcx, [rsp + 0x88]
call fcn.14005041c
mov eax, ebx
add rsp, 0x308
pop rdi
pop rsi
pop rbp
pop rbx
ret