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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a4f1
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x5a4ca4]
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 0x5bd4e8
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x164], eax
call fcn.00521d30
add esp, 0xc
push 0x5bd4e8
push 0x55ad38
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 0x412fb4
push str.ASUS
push 0x104
push 0x5bd4e8
call fcn.0052c677
add esp, 0xc
push 0x5bd4e8
call esi
test eax, eax
jne 0x412ef8
push eax
push 0x5bd4e8
call ebx
push str.Dip
push 0x104
push 0x5bd4e8
call fcn.0052c677
add esp, 0xc
push 0x5bd4e8
call esi
test eax, eax
jne 0x412f22
push eax
push 0x5bd4e8
call ebx
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00521d30
mov ecx, 0x5bd4e8
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412f40
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x114]
push eax
push 0x5bd4e8
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 0x412f90
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x144]
call fcn.00405980
mov eax, dword [ebp - 0x130]
jmp 0x412fd0
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 0x413007
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x15c]
call fcn.00405980
mov edx, dword [ebp - 0x130]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x41305b
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413051
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413244
push edx
push ecx
call fcn.0050974d
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.004110b0
push dword [ebp - 0x164]
lea ecx, [ebp - 0x12c]
push esi
push ebx
call fcn.00411440
push 9
push str.FanXpert
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 3
call fcn.00404b50
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 0x41311d
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 0x413147
push 1
push 0x55c108
lea ecx, [ebp - 0x12c]
call fcn.00404b50
push 0x16
push 0x55c10c
lea ecx, [ebp - 0x12c]
call fcn.00404b50
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 0x413180
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00404cd0
mov edx, dword [ebp - 0x118]
cmp edx, 8
jb 0x4131d4
mov ecx, dword [ebp - 0x12c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4131ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413249
push edx
push ecx
call fcn.0050974d
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 0x413227
mov ecx, dword [ebp - 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41321d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41324e
push edx
push ecx
call fcn.0050974d
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.0050970c
mov esp, ebp
pop ebp
ret
call fcn.00524f8e
call fcn.00524f8e
call fcn.00524f8e
int3