Function at 0x47a840
Capabilities:
Create directory
Get common file path
Get disk information
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486d80
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x448], ecx
mov byte [ebp - 0x11c], 0
push 0x103
push 0
lea eax, [ebp - 0x11b]
push eax
call fcn.00453b10
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x493230
lea edx, [ebp - 0x11c]
push edx
call fcn.00455770
add esp, 8
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x448]
call fcn.0047a450
movzx edx, al
test edx, edx
je 0x47a8d7
jmp 0x47ad09
mov byte [ebp - 0x224], 0
push 0x103
push 0
lea eax, [ebp - 0x223]
push eax
call fcn.00453b10
add esp, 0xc
mov byte [ebp - 0x43c], 0
push 0x103
push 0
lea ecx, [ebp - 0x43b]
push ecx
call fcn.00453b10
add esp, 0xc
lea ecx, [ebp - 0x440]
call fcn.00401d50
mov dword [ebp - 4], 0
lea edx, [ebp - 0x43c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x334], eax
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x330], eax
mov ecx, dword [ebp - 0x330]
movsx edx, byte [ecx]
test edx, edx
je 0x47aa92
mov eax, dword [ebp - 0x330]
push eax
lea ecx, [ebp - 0x440]
call fcn.00402270
mov ecx, dword [ebp - 0x330]
movsx edx, byte [ecx]
push edx
call fcn.00455a9c
add esp, 4
mov esi, eax
movsx eax, byte [ebp - 0x11c]
push eax
call fcn.00455a9c
add esp, 4
cmp esi, eax
jne 0x47a9af
lea ecx, [ebp - 0x440]
call fcn.0041da10
mov ecx, dword [ebp - 0x330]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x330], edx
jmp 0x47a947
mov eax, dword [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x47a9e1
lea ecx, [ebp - 0x440]
call fcn.0041da10
mov ecx, dword [ebp - 0x330]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x330], edx
jmp 0x47a947
mov eax, dword [ebp - 0x330]
push eax
call fcn.0047a4a0
add esp, 4
test eax, eax
je 0x47aa14
lea ecx, [ebp - 0x440]
call fcn.0041da10
mov ecx, dword [ebp - 0x330]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x330], edx
jmp 0x47a947
mov eax, dword [ebp - 0x330]
push eax
lea ecx, [ebp - 0x224]
push ecx
call fcn.00455760
add esp, 8
push str.KingsoftDatauuid_info.dat
lea edx, [ebp - 0x224]
push edx
call fcn.00455770
add esp, 8
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x448]
call fcn.0047a450
movzx edx, al
test edx, edx
je 0x47aa72
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.00403340
jmp 0x47ad09
lea ecx, [ebp - 0x440]
call fcn.0041da10
mov ecx, dword [ebp - 0x330]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x330], edx
jmp 0x47a947
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x448]
call fcn.0047a5e0
lea edx, [ebp - 0x11c]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x493240
push 0x493248
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 7
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov byte [ebp - 0x32c], 0
push 0x103
push 0
lea edx, [ebp - 0x32b]
push edx
call fcn.00453b10
add esp, 0xc
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x330], eax
mov ecx, dword [ebp - 0x330]
movsx edx, byte [ecx]
test edx, edx
je 0x47acf7
mov eax, dword [ebp - 0x330]
push eax
lea ecx, [ebp - 0x440]
call fcn.00402270
mov ecx, dword [ebp - 0x330]
movsx edx, byte [ecx]
push edx
call fcn.00455a9c
add esp, 4
mov esi, eax
movsx eax, byte [ebp - 0x11c]
push eax
call fcn.00455a9c
add esp, 4
cmp esi, eax
jne 0x47ab60
lea ecx, [ebp - 0x440]
call fcn.0041da10
mov ecx, dword [ebp - 0x330]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x330], edx
jmp 0x47aaf8
mov eax, dword [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x47ab92
lea ecx, [ebp - 0x440]
call fcn.0041da10
mov ecx, dword [ebp - 0x330]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x330], edx
jmp 0x47aaf8
mov eax, dword [ebp - 0x330]
push eax
call fcn.0047a4a0
add esp, 4
test eax, eax
je 0x47abc5
lea ecx, [ebp - 0x440]
call fcn.0041da10
mov ecx, dword [ebp - 0x330]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x330], edx
jmp 0x47aaf8
push 0x104
push 0
lea eax, [ebp - 0x32c]
push eax
call fcn.00453b10
add esp, 0xc
mov ecx, dword [ebp - 0x330]
push ecx
lea edx, [ebp - 0x32c]
push edx
call fcn.00455760
add esp, 8
push str.KingsoftData
lea eax, [ebp - 0x32c]
push eax
call fcn.00455770
add esp, 8
push 0
lea ecx, [ebp - 0x32c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 0xb7
je 0x47acd7
push 6
lea edx, [ebp - 0x32c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x104
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.00453b10
add esp, 0xc
lea ecx, [ebp - 0x32c]
push ecx
lea edx, [ebp - 0x224]
push edx
call fcn.00455760
add esp, 8
push str.uuid_info.dat
lea eax, [ebp - 0x224]
push eax
call fcn.00455770
add esp, 8
lea ecx, [ebp - 0x224]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.UUID
push str.Section
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x493280
lea eax, [ebp - 0x32c]
push eax
call fcn.00455770
add esp, 8
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x32c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
je 0x47acd5
mov edx, dword [ebp - 0x444]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47acf7
lea ecx, [ebp - 0x440]
call fcn.0041da10
mov ecx, dword [ebp - 0x330]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x330], edx
jmp 0x47aaf8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.00403340
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret 8