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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54fc03
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x5a4ca4]
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.0047ffd0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00521d30
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x55ad38
push 0
push 0
push 0x8023
push 0
call sub.SHELL32.dll_SHGetFolderPathAndSubDirW
test eax, eax
js 0x481820
push str.ASUS
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0052c677
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 0x480f22
push 0
lea eax, [ebp - 0x218]
push eax
call esi
push 0x568dcc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0052c677
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x480f52
push eax
lea eax, [ebp - 0x218]
push eax
call esi
push str.AsusLog
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0052c677
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x480f82
push eax
lea eax, [ebp - 0x218]
push eax
call esi
lea ecx, [ebp - 0x420]
call fcn.004332c0
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.0046dfc0
lea eax, [ebp - 0x440]
push eax
push str.EnableLog
lea ecx, [ebp - 0x420]
call fcn.0046dff0
lea ecx, [ebp - 0x420]
call fcn.0046dfa0
push 0x20219
push str.SOFTWAREASUSAsusFanService
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x42c], 6
call fcn.0046dfc0
lea eax, [ebp - 0x42c]
push eax
push str.spdlog_debug
lea ecx, [ebp - 0x420]
call fcn.0046dff0
lea ecx, [ebp - 0x420]
call fcn.0046dfa0
push 0x20219
push str.SOFTWAREASUSAsusFanService
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x448], 6
call fcn.0046dfc0
lea eax, [ebp - 0x448]
push eax
push str.log_type
lea ecx, [ebp - 0x420]
call fcn.0046dff0
lea ecx, [ebp - 0x420]
call fcn.0046dfa0
mov eax, dword [ebp - 0x440]
test eax, eax
je 0x4810aa
cmp eax, 6
jne 0x4810aa
cmp dword [ebp - 0x42c], 1
jne 0x481094
mov dword [ebp - 0x42c], 1
mov dword [ebp - 0x430], 1
jmp 0x4810be
mov dword [ebp - 0x42c], 2
mov dword [ebp - 0x430], 2
jmp 0x4810be
mov dword [ebp - 0x430], 6
mov dword [ebp - 0x42c], 6
push 0x104
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.00521d30
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 0x4810e0
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 0x481130
sub ecx, edx
lea eax, [ebp - 0x31c]
push ecx
push eax
lea ecx, [ebp - 0x334]
call fcn.00405980
push 1
push 0x55f1e4
lea ecx, [ebp - 0x334]
mov byte [ebp - 4], 1
call fcn.00409260
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.004110b0
push dword [ebp - 0x434]
lea ecx, [ebp - 0x364]
push esi
push ebx
call fcn.00411440
sub esp, 0x18
mov byte [ebp - 4], 2
lea eax, [ebp - 0x364]
mov ecx, esp
push eax
call fcn.00411bd0
mov ecx, dword [ebp - 0x44c]
call fcn.0047cd70
push 0x19
push str.AsusFanControlService.log
lea ecx, [ebp - 0x334]
call fcn.00409260
cmp dword [ebp - 0x440], 0
je 0x4817a9
mov eax, dword [ebp - 0x448]
cmp eax, 6
jne 0x481472
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 0x481280
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x34c]
call fcn.00405980
push 7
push str.2.03.43
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.00405980
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.00406ac0
lea eax, [ebp - 0x43c]
push eax
call fcn.004737c0
add esp, 0x30
lea ecx, [ebp - 0x37c]
call fcn.00405690
lea ecx, [ebp - 0x34c]
call fcn.00405690
mov ecx, dword [ebp - 0x380]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x48136b
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 0x481393
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 0x4813bb
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 0x4813e3
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.00405980
call fcn.00493d80
add esp, 0x1c
push 0
push 1
call fcn.00493310
mov ecx, eax
call fcn.00474e20
mov edi, dword [ebp - 0x430]
push edi
call fcn.00493ce0
push ecx
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x481449
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.00493b60
add esp, 8
lea ecx, [ebp - 0x43c]
call fcn.00439130
jmp 0x4817ae
cmp eax, 2
jne 0x481621
push 0x48
call fcn.0050971d
mov edi, eax
add esp, 4
mov dword [ebp - 0x424], edi
mov byte [ebp - 4], 0xa
test edi, edi
je 0x4814c8
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.00521d30
add esp, 0xc
mov ecx, esi
call fcn.00483610
mov dword [esi], vtable.spdlog::sinks::msvc_sink_class_std::mutex_.0
jmp 0x4814ca
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.0050971d
mov esi, eax
add esp, 4
mov dword [ebp - 0x424], esi
test esi, esi
je 0x481563
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 0x48152a
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.43
mov byte [ecx], 0
call fcn.00405980
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 0xc
call fcn.0047aaf0
jmp 0x481565
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.00405980
lea eax, [ebp - 0x34c]
mov byte [ebp - 4], 0xf
push eax
mov ecx, ebx
call fcn.00484420
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 0xe
call fcn.00405690
mov edi, dword [ebp - 0x430]
mov ecx, ebx
push edi
call fcn.00493cd0
push edi
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.00493cc0
sub esp, 8
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
test esi, esi
je 0x4815f9
lock inc dword [esi + 4]
mov dword [eax], edi
mov dword [eax + 4], esi
call fcn.00493b60
add esp, 8
lea ecx, [ebp - 0x43c]
call fcn.00439130
lea ecx, [ebp - 0x454]
call fcn.00439130
jmp 0x4817ae
cmp eax, 1
jne 0x4817a9
push 0x34
call fcn.0050971d
mov esi, eax
add esp, 4
mov dword [ebp - 0x424], esi
mov byte [ebp - 4], 0x10
test esi, esi
je 0x481664
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.00482b90
jmp 0x481666
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.0050971d
mov edi, eax
add esp, 4
mov dword [ebp - 0x424], edi
test edi, edi
je 0x4816ff
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 0x4816c6
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.43
mov byte [ecx], 0
call fcn.00405980
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 0x12
call fcn.0047aaf0
jmp 0x481701
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.00405980
lea eax, [ebp - 0x34c]
mov byte [ebp - 4], 0x15
push eax
mov ecx, ebx
call fcn.00483100
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 0x14
call fcn.00405690
mov edi, dword [ebp - 0x430]
mov ecx, ebx
push edi
call fcn.00493cd0
push edi
mov ecx, esi
call fcn.00493cc0
sub esp, 8
lea eax, [ebp - 0x43c]
mov ecx, esp
push eax
call fcn.0047aac0
call fcn.00493b60
add esp, 8
lea ecx, [ebp - 0x43c]
call fcn.00439130
lea ecx, [ebp - 0x454]
call fcn.00439130
jmp 0x4817ae
call fcn.00493f50
lea ecx, [ebp - 0x364]
call fcn.00404720
mov edx, dword [ebp - 0x320]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x4817f3
mov ecx, dword [ebp - 0x334]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4817e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x481847
push edx
push ecx
call fcn.0050974d
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.0046dfa0
mov ecx, dword [ebp - 0x44c]
call fcn.004804f0
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.0050970c
mov esp, ebp
pop ebp
ret
call fcn.00524f8e
int3