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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53eca3
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x58ec74]
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.0046fed0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00511230
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x549c38
push 0
push 0
push 0x8023
push 0
call sub.SHELL32.dll_SHGetFolderPathAndSubDirW
test eax, eax
js 0x471720
push str.ASUS
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0051be87
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 0x470e22
push 0
lea eax, [ebp - 0x218]
push eax
call esi
push 0x55533c
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0051be87
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x470e52
push eax
lea eax, [ebp - 0x218]
push eax
call esi
push str.AsusLog
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0051be87
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x470e82
push eax
lea eax, [ebp - 0x218]
push eax
call esi
lea ecx, [ebp - 0x420]
call fcn.0042e560
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.0045e9c0
lea eax, [ebp - 0x440]
push eax
push str.EnableLog
lea ecx, [ebp - 0x420]
call fcn.0045e9e0
lea ecx, [ebp - 0x420]
call fcn.0045e9a0
push 0x20219
push str.SOFTWAREASUSAsusFanService
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x42c], 6
call fcn.0045e9c0
lea eax, [ebp - 0x42c]
push eax
push str.spdlog_debug
lea ecx, [ebp - 0x420]
call fcn.0045e9e0
lea ecx, [ebp - 0x420]
call fcn.0045e9a0
push 0x20219
push str.SOFTWAREASUSAsusFanService
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x448], 6
call fcn.0045e9c0
lea eax, [ebp - 0x448]
push eax
push str.log_type
lea ecx, [ebp - 0x420]
call fcn.0045e9e0
lea ecx, [ebp - 0x420]
call fcn.0045e9a0
mov eax, dword [ebp - 0x440]
test eax, eax
je 0x470faa
cmp eax, 6
jne 0x470faa
cmp dword [ebp - 0x42c], 1
jne 0x470f94
mov dword [ebp - 0x42c], 1
mov dword [ebp - 0x430], 1
jmp 0x470fbe
mov dword [ebp - 0x42c], 2
mov dword [ebp - 0x430], 2
jmp 0x470fbe
mov dword [ebp - 0x430], 6
mov dword [ebp - 0x42c], 6
push 0x104
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.00511230
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 0x470fe0
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 0x471030
sub ecx, edx
lea eax, [ebp - 0x31c]
push ecx
push eax
lea ecx, [ebp - 0x334]
call fcn.00404d70
push 1
push 0x54d214
lea ecx, [ebp - 0x334]
mov byte [ebp - 4], 1
call fcn.00408400
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.004100e0
push dword [ebp - 0x434]
lea ecx, [ebp - 0x364]
push esi
push ebx
call fcn.00410470
sub esp, 0x18
mov byte [ebp - 4], 2
lea eax, [ebp - 0x364]
mov ecx, esp
push eax
call fcn.00410c00
mov ecx, dword [ebp - 0x44c]
call fcn.0046d280
push 0x19
push str.AsusFanControlService.log
lea ecx, [ebp - 0x334]
call fcn.00408400
cmp dword [ebp - 0x440], 0
je 0x4716a9
mov eax, dword [ebp - 0x448]
cmp eax, 6
jne 0x471372
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 0x471180
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x34c]
call fcn.00404d70
push 7
push str.2.03.35
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.00464150
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 0x47126b
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 0x471293
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 0x4712bb
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 0x4712e3
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.00483cc0
add esp, 0x1c
push 0
push 1
call fcn.00483250
mov ecx, eax
call fcn.004657b0
mov edi, dword [ebp - 0x430]
push edi
call fcn.00483c20
push ecx
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x471349
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.00483aa0
add esp, 8
lea ecx, [ebp - 0x43c]
call fcn.004342c0
jmp 0x4716ae
cmp eax, 2
jne 0x471521
push 0x48
call fcn.004f8f4d
mov edi, eax
add esp, 4
mov dword [ebp - 0x424], edi
mov byte [ebp - 4], 0xa
test edi, edi
je 0x4713c8
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.00511230
add esp, 0xc
mov ecx, esi
call fcn.00473510
mov dword [esi], vtable.spdlog::sinks::msvc_sink_class_std::mutex_.0
jmp 0x4713ca
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.004f8f4d
mov esi, eax
add esp, 4
mov dword [ebp - 0x424], esi
test esi, esi
je 0x471463
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 0x47142a
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.35
mov byte [ecx], 0
call fcn.00404d70
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 0xc
call fcn.0046b210
jmp 0x471465
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.00474320
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 0xe
call fcn.00404a80
mov edi, dword [ebp - 0x430]
mov ecx, ebx
push edi
call fcn.00483c10
push edi
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.00483c00
sub esp, 8
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
test esi, esi
je 0x4714f9
lock inc dword [esi + 4]
mov dword [eax], edi
mov dword [eax + 4], esi
call fcn.00483aa0
add esp, 8
lea ecx, [ebp - 0x43c]
call fcn.004342c0
lea ecx, [ebp - 0x454]
call fcn.004342c0
jmp 0x4716ae
cmp eax, 1
jne 0x4716a9
push 0x34
call fcn.004f8f4d
mov esi, eax
add esp, 4
mov dword [ebp - 0x424], esi
mov byte [ebp - 4], 0x10
test esi, esi
je 0x471564
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.00472a90
jmp 0x471566
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.004f8f4d
mov edi, eax
add esp, 4
mov dword [ebp - 0x424], edi
test edi, edi
je 0x4715ff
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 0x4715c6
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.35
mov byte [ecx], 0
call fcn.00404d70
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 0x12
call fcn.0046b210
jmp 0x471601
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.00473000
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 0x14
call fcn.00404a80
mov edi, dword [ebp - 0x430]
mov ecx, ebx
push edi
call fcn.00483c10
push edi
mov ecx, esi
call fcn.00483c00
sub esp, 8
lea eax, [ebp - 0x43c]
mov ecx, esp
push eax
call fcn.0046b1e0
call fcn.00483aa0
add esp, 8
lea ecx, [ebp - 0x43c]
call fcn.004342c0
lea ecx, [ebp - 0x454]
call fcn.004342c0
jmp 0x4716ae
call fcn.00483e90
lea ecx, [ebp - 0x364]
call fcn.00403b60
mov edx, dword [ebp - 0x320]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x4716f3
mov ecx, dword [ebp - 0x334]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4716e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471747
push edx
push ecx
call fcn.004f8f7d
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.0045e9a0
mov ecx, dword [ebp - 0x44c]
call fcn.004703f0
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.004f8f3c
mov esp, ebp
pop ebp
ret
call fcn.00514793
int3