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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539d01
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x58ec74]
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 0x5a7400
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x164], eax
call fcn.00511230
add esp, 0xc
push 0x5a7400
push 0x549c38
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 0x411fe4
push str.ASUS
push 0x104
push 0x5a7400
call fcn.0051be87
add esp, 0xc
push 0x5a7400
call esi
test eax, eax
jne 0x411f28
push eax
push 0x5a7400
call ebx
push str.Dip
push 0x104
push 0x5a7400
call fcn.0051be87
add esp, 0xc
push 0x5a7400
call esi
test eax, eax
jne 0x411f52
push eax
push 0x5a7400
call ebx
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00511230
mov ecx, 0x5a7400
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411f70
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x114]
push eax
push 0x5a7400
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 0x411fc0
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x144]
call fcn.00404d70
mov eax, dword [ebp - 0x130]
jmp 0x412000
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 0x412037
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 0x41208b
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412081
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412274
push edx
push ecx
call fcn.004f8f7d
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.004100e0
push dword [ebp - 0x164]
lea ecx, [ebp - 0x12c]
push esi
push ebx
call fcn.00410470
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 0x41214d
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 byte [ebp + 0xc], 0
jne 0x412177
push 1
push 0x54b008
lea ecx, [ebp - 0x12c]
call fcn.00403f40
push 0x16
push 0x54b00c
lea ecx, [ebp - 0x12c]
call fcn.00403f40
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 dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4121b0
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 0x412204
mov ecx, dword [ebp - 0x12c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4121fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412279
push edx
push ecx
call fcn.004f8f7d
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 0x412257
mov ecx, dword [ebp - 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41224d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41227e
push edx
push ecx
call fcn.004f8f7d
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.004f8f3c
mov esp, ebp
pop ebp
ret
call fcn.00514793
call fcn.00514793
call fcn.00514793
int3