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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ff43
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x58fc74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x44c], eax
call fcn.00470b30
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00512450
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x54ac38
push 0
push 0
push 0x8023
push 0
call sub.SHELL32.dll_SHGetFolderPathAndSubDirW
test eax, eax
js 0x472380
push str.ASUS
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0051d0a7
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
lea eax, [ebp - 0x218]
add esp, 0xc
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x471a82
push 0
lea eax, [ebp - 0x218]
push eax
call esi
push 0x556484
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0051d0a7
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x471ab2
push eax
lea eax, [ebp - 0x218]
push eax
call esi
push str.AsusLog
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0051d0a7
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x471ae2
push eax
lea eax, [ebp - 0x218]
push eax
call esi
lea ecx, [ebp - 0x420]
call fcn.0042e780
push 0x20219
push str.SOFTWAREASUSAsusFanService
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x420]
mov dword [ebp - 4], 0
mov dword [ebp - 0x440], 0
call fcn.0045f110
lea eax, [ebp - 0x440]
push eax
push str.EnableLog
lea ecx, [ebp - 0x420]
call fcn.0045f130
lea ecx, [ebp - 0x420]
call fcn.0045f0f0
push 0x20219
push str.SOFTWAREASUSAsusFanService
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x42c], 6
call fcn.0045f110
lea eax, [ebp - 0x42c]
push eax
push str.spdlog_debug
lea ecx, [ebp - 0x420]
call fcn.0045f130
lea ecx, [ebp - 0x420]
call fcn.0045f0f0
push 0x20219
push str.SOFTWAREASUSAsusFanService
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x448], 6
call fcn.0045f110
lea eax, [ebp - 0x448]
push eax
push str.log_type
lea ecx, [ebp - 0x420]
call fcn.0045f130
lea ecx, [ebp - 0x420]
call fcn.0045f0f0
mov eax, dword [ebp - 0x440]
test eax, eax
je 0x471c0a
cmp eax, 6
jne 0x471c0a
cmp dword [ebp - 0x42c], 1
jne 0x471bf4
mov dword [ebp - 0x42c], 1
mov dword [ebp - 0x430], 1
jmp 0x471c1e
mov dword [ebp - 0x42c], 2
mov dword [ebp - 0x430], 2
jmp 0x471c1e
mov dword [ebp - 0x430], 6
mov dword [ebp - 0x42c], 6
push 0x104
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.00512450
lea ecx, [ebp - 0x218]
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471c40
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_SHUnicodeToAnsi]
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x320], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x334], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x471c90
sub ecx, edx
lea eax, [ebp - 0x31c]
push ecx
push eax
lea ecx, [ebp - 0x334]
call fcn.00404d70
push 1
push 0x54e214
lea ecx, [ebp - 0x334]
mov byte [ebp - 4], 1
call fcn.00408620
cmp dword [ebp - 0x320], 0x10
lea edx, [ebp - 0x334]
mov esi, dword [ebp - 0x324]
lea ebx, [ebp - 0x334]
cmovae edx, dword [ebp - 0x334]
lea ecx, [ebp - 0x364]
add esi, edx
mov dword [ebp - 0x354], 0
cmp dword [ebp - 0x320], 0x10
mov dword [ebp - 0x350], 7
cmovae ebx, dword [ebp - 0x334]
xor eax, eax
mov word [ebp - 0x364], ax
mov eax, esi
sub eax, ebx
push eax
call fcn.00410300
push dword [ebp - 0x434]
lea ecx, [ebp - 0x364]
push esi
push ebx
call fcn.00410690
sub esp, 0x18
mov byte [ebp - 4], 2
lea eax, [ebp - 0x364]
mov ecx, esp
push eax
call fcn.00410e20
mov ecx, dword [ebp - 0x44c]
call fcn.0046de50
push 0x19
push str.AsusFanControlService.log
lea ecx, [ebp - 0x334]
call fcn.00408620
cmp dword [ebp - 0x440], 0
je 0x472309
mov eax, dword [ebp - 0x448]
cmp eax, 6
jne 0x471fd2
mov dword [ebp - 0x3f8], 0
mov dword [ebp - 0x3d0], 0
mov dword [ebp - 0x3a8], 0
mov dword [ebp - 0x380], 0
cmp dword [ebp - 0x320], 0x10
lea edx, [ebp - 0x334]
mov byte [ebp - 4], 3
cmovae edx, dword [ebp - 0x334]
mov ecx, edx
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x338], 0xf
mov byte [ebp - 0x34c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x471de0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x34c]
call fcn.00404d70
push 7
push str.2.03.37
lea ecx, [ebp - 0x37c]
mov byte [ebp - 4], 4
mov dword [ebp - 0x36c], 0
mov dword [ebp - 0x368], 0xf
mov byte [ebp - 0x37c], 0
call fcn.00404d70
lea eax, [ebp - 0x41c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x428]
mov byte [ebp - 0x428], 0
push eax
lea eax, [ebp - 0x444]
mov dword [ebp - 0x444], 3
push eax
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0x500000
push eax
lea eax, [ebp - 0x34c]
push eax
sub esp, 0x18
lea eax, [ebp - 0x37c]
mov ecx, esp
push eax
call fcn.00405eb0
lea eax, [ebp - 0x43c]
push eax
call fcn.004648a0
add esp, 0x30
lea ecx, [ebp - 0x37c]
call fcn.00404a80
lea ecx, [ebp - 0x34c]
call fcn.00404a80
mov ecx, dword [ebp - 0x380]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x471ecb
mov edx, dword [ecx]
lea eax, [ebp - 0x3a4]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x380], 0
mov ecx, dword [ebp - 0x3a8]
test ecx, ecx
je 0x471ef3
mov edx, dword [ecx]
lea eax, [ebp - 0x3cc]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x3a8], 0
mov ecx, dword [ebp - 0x3d0]
test ecx, ecx
je 0x471f1b
mov edx, dword [ecx]
lea eax, [ebp - 0x3f4]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x3d0], 0
mov ecx, dword [ebp - 0x3f8]
test ecx, ecx
je 0x471f43
mov edx, dword [ecx]
lea eax, [ebp - 0x41c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x3f8], 0
push 0
sub esp, 0x18
mov ecx, esp
push 0x30
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str._Y__m__d__H:_M:_S__e__n_P:_P_T:_t___s:____:__v
mov byte [ecx], 0
call fcn.00404d70
call fcn.00484910
add esp, 0x1c
push 0
push 1
call fcn.00483ea0
mov ecx, eax
call fcn.00465f00
mov edi, dword [ebp - 0x430]
push edi
call fcn.00484870
push ecx
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x471fa9
lock inc dword [eax + 4]
mov eax, dword [ebp - 0x43c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x438]
mov dword [ecx + 4], eax
call fcn.004846f0
add esp, 8
lea ecx, [ebp - 0x43c]
call fcn.004344d0
jmp 0x47230e
cmp eax, 2
jne 0x472181
push 0x48
call fcn.004fa16d
mov edi, eax
add esp, 4
mov dword [ebp - 0x424], edi
mov byte [ebp - 4], 0xa
test edi, edi
je 0x472028
push 0x3c
lea esi, [edi + 0xc]
mov dword [edi + 4], 1
push 0
push esi
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj_class_spdlog::sinks::msvc_sink_class_std::mutex__.0
call fcn.00512450
add esp, 0xc
mov ecx, esi
call fcn.00474170
mov dword [esi], vtable.spdlog::sinks::msvc_sink_class_std::mutex_.0
jmp 0x47202a
xor edi, edi
lea ebx, [edi + 0xc]
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x454], ebx
push 0xc0
mov byte [ebp - 4], 0xb
call fcn.004fa16d
mov esi, eax
add esp, 4
mov dword [ebp - 0x424], esi
test esi, esi
je 0x4720c3
sub esp, 8
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov eax, esp
mov dword [esi], vtable.std::_Ref_count_obj_class_spdlog::logger_.0
mov dword [ebp - 0x434], esp
mov dword [eax], 0
mov dword [eax + 4], 0
test edi, edi
je 0x47208a
lock inc dword [edi + 4]
mov dword [eax], ebx
mov dword [eax + 4], edi
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov ecx, esp
push 7
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.2.03.37
mov byte [ecx], 0
call fcn.00404d70
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 0xc
call fcn.0046bbd0
jmp 0x4720c5
xor esi, esi
lea eax, [esi + 0x10]
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x43c], eax
push 0x30
push str._Y__m__d__H:_M:_S__e__n_P:_P_T:_t___s:____:__v
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x338], 0xf
mov byte [ebp - 0x34c], 0
call fcn.00404d70
lea eax, [ebp - 0x34c]
mov byte [ebp - 4], 0xf
push eax
mov ecx, ebx
call fcn.00474f80
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 0xe
call fcn.00404a80
mov edi, dword [ebp - 0x430]
mov ecx, ebx
push edi
call fcn.00484860
push edi
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.00484850
sub esp, 8
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
test esi, esi
je 0x472159
lock inc dword [esi + 4]
mov dword [eax], edi
mov dword [eax + 4], esi
call fcn.004846f0
add esp, 8
lea ecx, [ebp - 0x43c]
call fcn.004344d0
lea ecx, [ebp - 0x454]
call fcn.004344d0
jmp 0x47230e
cmp eax, 1
jne 0x472309
push 0x34
call fcn.004fa16d
mov esi, eax
add esp, 4
mov dword [ebp - 0x424], esi
mov byte [ebp - 4], 0x10
test esi, esi
je 0x4721c4
lea ecx, [esi + 0xc]
mov dword [esi + 4], 1
push 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj_class_spdlog::sinks::wincolor_stdout_sink_struct_spdlog::details::console_mutex__.0
call fcn.004736f0
jmp 0x4721c6
xor esi, esi
lea ebx, [esi + 0xc]
mov dword [ebp - 0x450], esi
mov dword [ebp - 0x454], ebx
push 0xc0
mov byte [ebp - 4], 0x11
call fcn.004fa16d
mov edi, eax
add esp, 4
mov dword [ebp - 0x424], edi
test edi, edi
je 0x47225f
sub esp, 8
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov eax, esp
mov dword [edi], vtable.std::_Ref_count_obj_class_spdlog::logger_.0
mov dword [ebp - 0x434], esp
mov dword [eax], 0
mov dword [eax + 4], 0
test esi, esi
je 0x472226
lock inc dword [esi + 4]
mov dword [eax], ebx
mov dword [eax + 4], esi
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
push 7
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.2.03.37
mov byte [ecx], 0
call fcn.00404d70
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 0x12
call fcn.0046bbd0
jmp 0x472261
xor edi, edi
lea esi, [edi + 0x10]
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], esi
push 0x30
push str._Y__m__d__H:_M:_S__e__n_P:_P_T:_t___s:____:__v
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x338], 0xf
mov byte [ebp - 0x34c], 0
call fcn.00404d70
lea eax, [ebp - 0x34c]
mov byte [ebp - 4], 0x15
push eax
mov ecx, ebx
call fcn.00473c60
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 0x14
call fcn.00404a80
mov edi, dword [ebp - 0x430]
mov ecx, ebx
push edi
call fcn.00484860
push edi
mov ecx, esi
call fcn.00484850
sub esp, 8
lea eax, [ebp - 0x43c]
mov ecx, esp
push eax
call fcn.0046bba0
call fcn.004846f0
add esp, 8
lea ecx, [ebp - 0x43c]
call fcn.004344d0
lea ecx, [ebp - 0x454]
call fcn.004344d0
jmp 0x47230e
call fcn.00484ae0
lea ecx, [ebp - 0x364]
call fcn.00403b60
mov edx, dword [ebp - 0x320]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x472353
mov ecx, dword [ebp - 0x334]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x472349
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4723a7
push edx
push ecx
call fcn.004fa19d
add esp, 8
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x320], 0xf
mov byte [ebp - 0x334], 0
mov dword [ebp - 4], 0xffffffff
call fcn.0045f0f0
mov ecx, dword [ebp - 0x44c]
call fcn.00471050
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fa15c
mov esp, ebp
pop ebp
ret
call fcn.005159b3
int3