Function at 0x409bc0
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5499ca
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x5a4ca4]
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.00521d30
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 0x55ad38
call fcn.00404cd0
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 0x409ca4
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409c80
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.00404cd0
jmp 0x409cb1
push str.GetModuleFileName_failed_n
call fcn.0040a2b0
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 0x409d4a
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 0x409cf1
cmp ecx, edx
je 0x409d4a
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x409ce4
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x409d4a
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.00404cd0
mov dword [ebp - 0x26c], 7
jmp 0x409da3
cmp dword [ebp - 0x220], 8
lea edx, [ebp - 0x234]
cmovae edx, dword [ebp - 0x234]
test esi, esi
je 0x409d78
mov eax, esi
mov ecx, edx
cmp word [ecx], 0x3a
je 0x409e37
add ecx, 2
sub eax, 1
jne 0x409d66
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.00404b50
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 0x409ea4
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409e9a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a110
jmp 0x409e9a
test ecx, ecx
je 0x409d78
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x409d78
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.00404cd0
mov eax, 0x19
jmp 0x409d9a
push edx
push ecx
call fcn.0050974d
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 0x409f05
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409efb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a115
push edx
push ecx
call fcn.0050974d
add esp, 8
xor eax, eax
mov dword [ebp - 0x224], 0
cmp dword [ebp - 0x250], 8
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x264]
cmovae eax, dword [ebp - 0x264]
push eax
mov dword [ebp - 0x220], 7
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409f57
lea ecx, [ebp - 0x264]
mov byte [edi + 0x24], 0
call fcn.00404720
xor al, al
jmp 0x40a0f4
cmp dword [ebp - 0x250], 8
lea eax, [ebp - 0x264]
cmovae eax, dword [ebp - 0x264]
push eax
call fcn.00402f20
add esp, 4
test eax, eax
je 0x409f41
push 0x1c
mov byte [ebp - 4], 5
call fcn.0050971d
mov ecx, eax
add esp, 4
mov dword [ebp - 0x26c], ecx
mov byte [ebp - 4], 6
test ecx, ecx
je 0x409fb2
cmp dword [ebp - 0x250], 8
lea eax, [ebp - 0x264]
cmovae eax, dword [ebp - 0x264]
push eax
call fcn.00461510
jmp 0x409fb4
xor eax, eax
mov ecx, eax
mov byte [ebp - 4], 5
mov dword [edi + 0x28], eax
call fcn.00461570
test al, al
je 0x40a0da
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 0x40a0da
cmp dword [edi + 4], 0
je 0x40a0da
cmp dword [edi + 8], 0
je 0x40a0da
cmp dword [edi + 0xc], 0
je 0x40a0da
cmp dword [edi + 0x10], 0
je 0x40a0da
cmp dword [edi + 0x14], 0
je 0x40a0da
cmp dword [edi + 0x18], 0
je 0x40a0da
cmp dword [edi + 0x1c], 0
je 0x40a0da
test eax, eax
je 0x40a0da
call ecx
mov byte [edi + 0x24], al
jmp 0x40a0da
mov al, byte [edi + 0x24]
lea ecx, [ebp - 0x264]
mov byte [ebp - 0x265], al
call fcn.00404720
mov al, byte [ebp - 0x265]
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.0050970c
mov esp, ebp
pop ebp
ret
call fcn.00524f8e
call fcn.00524f8e
int3