Function at 0x408d50
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5391da
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x58ec74]
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.00511230
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 0x549c38
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 0x408e34
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408e10
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.004040c0
jmp 0x408e41
push str.GetModuleFileName_failed_n
call fcn.00409420
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 0x408eda
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 0x408e81
cmp ecx, edx
je 0x408eda
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x408e74
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x408eda
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 0x408f33
cmp dword [ebp - 0x220], 8
lea edx, [ebp - 0x234]
cmovae edx, dword [ebp - 0x234]
test esi, esi
je 0x408f08
mov eax, esi
mov ecx, edx
cmp word [ecx], 0x3a
je 0x408fc7
add ecx, 2
sub eax, 1
jne 0x408ef6
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 0x409034
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40902a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40927b
jmp 0x40902a
test ecx, ecx
je 0x408f08
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x408f08
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 0x408f2a
push edx
push ecx
call fcn.004f8f7d
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 0x409095
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40908b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409280
push edx
push ecx
call fcn.004f8f7d
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.004f8f4d
mov ecx, eax
add esp, 4
mov dword [ebp - 0x26c], ecx
mov byte [ebp - 4], 6
test ecx, ecx
je 0x4090ec
cmp dword [ebp - 0x250], 8
lea eax, [ebp - 0x264]
cmovae eax, dword [ebp - 0x264]
push eax
call fcn.004555d0
jmp 0x4090ee
xor eax, eax
mov ecx, eax
mov byte [ebp - 4], 5
mov dword [edi + 0x28], eax
call fcn.00455630
test al, al
je 0x409214
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 0x409214
cmp dword [edi + 4], 0
je 0x409214
cmp dword [edi + 8], 0
je 0x409214
cmp dword [edi + 0xc], 0
je 0x409214
cmp dword [edi + 0x10], 0
je 0x409214
cmp dword [edi + 0x14], 0
je 0x409214
cmp dword [edi + 0x18], 0
je 0x409214
cmp dword [edi + 0x1c], 0
je 0x409214
test eax, eax
je 0x409214
call ecx
mov byte [edi + 0x24], al
jmp 0x409214
mov al, byte [edi + 0x24]
mov edx, dword [ebp - 0x250]
mov byte [ebp - 0x265], al
cmp edx, 8
jb 0x40925f
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40924f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409285
push edx
push ecx
call fcn.004f8f7d
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.004f8f3c
mov esp, ebp
pop ebp
ret
call fcn.00514793
call fcn.00514793
call fcn.00514793
int3