Function at 0x46e3b0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53af21
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x58fc74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x208
push 0
push 0x5a90e8
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x164], eax
call fcn.00512450
add esp, 0xc
push 0x5a90e8
push 0x54ac38
push 0
push 0
push 0x8023
push 0
call sub.SHELL32.dll_SHGetFolderPathAndSubDirW
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
js 0x46e514
push str.ASUS
push 0x104
push 0x5a90e8
call fcn.0051d0a7
add esp, 0xc
push 0x5a90e8
call esi
test eax, eax
jne 0x46e458
push eax
push 0x5a90e8
call ebx
push str.Dip
push 0x104
push 0x5a90e8
call fcn.0051d0a7
add esp, 0xc
push 0x5a90e8
call esi
test eax, eax
jne 0x46e482
push eax
push 0x5a90e8
call ebx
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00512450
mov ecx, 0x5a90e8
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46e4a0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x114]
push eax
push 0x5a90e8
call dword [sym.imp.SHLWAPI.dll_SHUnicodeToAnsi]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x144], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46e4f0
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x144]
call fcn.00404d70
mov eax, dword [ebp - 0x130]
jmp 0x46e530
mov eax, 0xf
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], eax
mov byte [ebp - 0x144], 0
cmp eax, 0x10
mov dword [ebp - 4], 0
lea edx, [ebp - 0x144]
mov dword [ebp - 0x14c], 0
cmovae edx, dword [ebp - 0x144]
mov ecx, edx
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46e567
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x15c]
call fcn.00404d70
mov edx, dword [ebp - 0x130]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x46e5bb
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46e5b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e77a
push edx
push ecx
call fcn.004fa19d
add esp, 8
cmp dword [ebp - 0x148], 0x10
lea edx, [ebp - 0x15c]
mov esi, dword [ebp - 0x14c]
lea ebx, [ebp - 0x15c]
cmovae edx, dword [ebp - 0x15c]
lea ecx, [ebp - 0x12c]
add esi, edx
mov dword [ebp - 0x11c], 0
cmp dword [ebp - 0x148], 0x10
mov dword [ebp - 0x118], 7
cmovae ebx, dword [ebp - 0x15c]
xor eax, eax
mov word [ebp - 0x12c], ax
mov eax, esi
sub eax, ebx
push eax
call fcn.00410300
push dword [ebp - 0x164]
lea ecx, [ebp - 0x12c]
push esi
push ebx
call fcn.00410690
push 9
push str.FanXpert
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 3
call fcn.00403f40
cmp dword [ebp - 0x118], 8
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x46e67d
cmp dword [ebp - 0x118], 8
lea eax, [ebp - 0x12c]
push 0
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp - 0x118], 8
lea edx, [ebp - 0x12c]
mov ebx, dword [ebp - 0x160]
cmovae edx, dword [ebp - 0x12c]
xor eax, eax
mov ecx, edx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46e6b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.004040c0
mov edx, dword [ebp - 0x118]
cmp edx, 8
jb 0x46e708
mov ecx, dword [ebp - 0x12c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46e6fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e77f
push edx
push ecx
call fcn.004fa19d
add esp, 8
mov edx, dword [ebp - 0x148]
xor eax, eax
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 7
mov word [ebp - 0x12c], ax
cmp edx, 0x10
jb 0x46e75b
mov ecx, dword [ebp - 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46e751
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e784
push edx
push ecx
call fcn.004fa19d
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fa15c
mov esp, ebp
pop ebp
ret 4
call fcn.005159b3
call fcn.005159b3
call fcn.005159b3
int3