Function at 0x10005190
Capabilities:
Get disk size
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x10015cd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [0x1001c4e0]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.asdf
mov dword [esp + 0x68], eax
mov esi, ecx
call edi
push ebx
push ebx
push ebx
push str.kdjfir
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.10004c00
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov dword [esp + 0x60], ebx
call fcn.10004d40
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
mov byte [esp + 0x5c], 1
jae 0x10005208
lea eax, [esp + 0x38]
push ebp
lea edx, [esp + 0x10]
push edx
push 0x2001f
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x10005322
mov ecx, dword [esi + 0x30]
xor eax, eax
cmp ecx, ebx
je 0x10005241
push ecx
call ebp
mov dword [esi + 0x30], ebx
cmp eax, ebx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x30], ecx
jne 0x10005322
cmp dword [esp + 0x34], 0x10
mov ecx, dword [esp + 0x20]
jae 0x1000525f
lea ecx, [esp + 0x20]
mov eax, dword [esi + 0x30]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push ecx
push eax
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x10005299
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x10005292
push eax
call ebp
mov dword [esi + 0x2c], ebx
mov eax, dword [esp + 0x10]
mov dword [esi + 0x2c], eax
push str.windows
lea ecx, [esp + 0x18]
call fcn.10004ff0
push ebx
push ebx
push ebx
push ebx
push ebx
push str.121kduef
call edi
push str.12sfwer
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
cmp eax, 0xffffffff
mov edi, ecx
jne 0x100052d4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov ecx, dword [esi + 0x2c]
push eax
push edi
push 1
push ebx
push 0x10017671
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x100052f5
push eax
call ebp
mov dword [esi + 0x30], ebx
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x10005302
push eax
call ebp
mov dword [esi + 0x2c], ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000532f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x1000532f
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x1000532f
push eax
call ebp
mov dword [esi + 0x30], ebx
mov eax, dword [esp + 0x34]
mov esi, 0x10
cmp eax, esi
pop ebp
jb 0x1000534a
mov eax, dword [esp + 0x1c]
push eax
call fcn.1000ce42
add esp, 4
mov eax, dword [esp + 0x4c]
pop edi
cmp eax, esi
pop esi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov dword [esp + 0x28], 0xf
pop ebx
jb 0x10005372
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.1000ce42
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x44]
call fcn.1000c9ce
add esp, 0x54
ret