Function at 0x408f70
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a3fa
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x58fc74]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x270], edi
mov dword [ebp - 0x26c], 0
push 0x208
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00512450
add esp, 0xc
mov dword [ebp - 0x224], 0
xor eax, eax
mov dword [ebp - 0x220], 7
lea ecx, [ebp - 0x234]
mov word [ebp - 0x234], ax
push eax
push 0x54ac38
call fcn.004040c0
push 0x104
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x26c], 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x409054
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409030
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.004040c0
jmp 0x409061
push str.GetModuleFileName_failed_n
call fcn.00409640
add esp, 4
cmp dword [ebp - 0x220], 8
lea edx, [ebp - 0x234]
mov esi, dword [ebp - 0x224]
cmovae edx, dword [ebp - 0x234]
test esi, esi
je 0x4090fa
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x4090a1
cmp ecx, edx
je 0x4090fa
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x409094
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4090fa
xor eax, eax
mov dword [ebp - 0x23c], 0
inc ecx
mov word [ebp - 0x24c], ax
cmp esi, ecx
mov dword [ebp - 0x238], 7
lea eax, [ebp - 0x234]
cmovb ecx, esi
cmp dword [ebp - 0x220], 8
push ecx
cmovae eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x24c]
push eax
call fcn.004040c0
mov dword [ebp - 0x26c], 7
jmp 0x409153
cmp dword [ebp - 0x220], 8
lea edx, [ebp - 0x234]
cmovae edx, dword [ebp - 0x234]
test esi, esi
je 0x409128
mov eax, esi
mov ecx, edx
cmp word [ecx], 0x3a
je 0x4091e7
add ecx, 2
sub eax, 1
jne 0x409116
xor eax, eax
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], ax
mov eax, 9
mov dword [ebp - 0x238], 7
or eax, 2
mov dword [ebp - 0x26c], eax
push 0xc
push str.ASUS_WMI.dll
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 1
call fcn.00403f40
mov dword [ebp - 0x254], 0
xor ecx, ecx
mov dword [ebp - 0x250], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x264], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x254], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x238]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x409254
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40924a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40949b
jmp 0x40924a
test ecx, ecx
je 0x409128
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x409128
xor eax, eax
mov dword [ebp - 0x23c], 0
inc ecx
mov word [ebp - 0x24c], ax
cmp esi, ecx
mov dword [ebp - 0x238], 7
lea eax, [ebp - 0x234]
cmovb ecx, esi
cmp dword [ebp - 0x220], 8
push ecx
cmovae eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x24c]
push eax
call fcn.004040c0
mov eax, 0x19
jmp 0x40914a
push edx
push ecx
call fcn.004fa19d
add esp, 8
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
mov edx, dword [ebp - 0x220]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x4092b5
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4092ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4094a0
push edx
push ecx
call fcn.004fa19d
add esp, 8
xor eax, eax
mov dword [ebp - 0x224], 0
push 0x1c
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov byte [ebp - 4], 5
call fcn.004fa16d
mov ecx, eax
add esp, 4
mov dword [ebp - 0x26c], ecx
mov byte [ebp - 4], 6
test ecx, ecx
je 0x40930c
cmp dword [ebp - 0x250], 8
lea eax, [ebp - 0x264]
cmovae eax, dword [ebp - 0x264]
push eax
call fcn.00455d20
jmp 0x40930e
xor eax, eax
mov ecx, eax
mov byte [ebp - 4], 5
mov dword [edi + 0x28], eax
call fcn.00455d80
test al, al
je 0x409434
mov eax, dword [edi + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IsSupportASUSWMI
push dword [eax]
call esi
mov dword [edi], eax
mov eax, dword [edi + 0x28]
push str.read_hwm_thread
push dword [eax]
call esi
mov dword [edi + 4], eax
mov eax, dword [edi + 0x28]
push str.write_hwm_thread
push dword [eax]
call esi
mov dword [edi + 8], eax
mov eax, dword [edi + 0x28]
push str.burst_read_hwm_thread
push dword [eax]
call esi
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x28]
push str.burst_write_hwm_thread
push dword [eax]
call esi
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x28]
push str.read_index_io_thread
push dword [eax]
call esi
mov dword [edi + 0x14], eax
mov eax, dword [edi + 0x28]
push str.write_index_io_thread
push dword [eax]
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x28]
push str.read_sio_thread
push dword [eax]
call esi
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0x28]
push str.write_sio_thread
push dword [eax]
call esi
mov ecx, dword [edi]
mov dword [edi + 0x20], eax
test ecx, ecx
je 0x409434
cmp dword [edi + 4], 0
je 0x409434
cmp dword [edi + 8], 0
je 0x409434
cmp dword [edi + 0xc], 0
je 0x409434
cmp dword [edi + 0x10], 0
je 0x409434
cmp dword [edi + 0x14], 0
je 0x409434
cmp dword [edi + 0x18], 0
je 0x409434
cmp dword [edi + 0x1c], 0
je 0x409434
test eax, eax
je 0x409434
call ecx
mov byte [edi + 0x24], al
jmp 0x409434
mov al, byte [edi + 0x24]
mov edx, dword [ebp - 0x250]
mov byte [ebp - 0x265], al
cmp edx, 8
jb 0x40947f
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40946f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4094a5
push edx
push ecx
call fcn.004fa19d
mov al, byte [ebp - 0x265]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fa15c
mov esp, ebp
pop ebp
ret
call fcn.005159b3
call fcn.005159b3
call fcn.005159b3
int3