Function at 0x1027d39
Capabilities:
Get common file path
Get file size
Query or enumerate registry value
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x548
mov eax, dword [0x102a0ec]
mov ecx, dword [ebp + 0x10]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [0x102c6ac], ebx
mov dword [ebp - 0x524], eax
mov dword [ebp - 0x528], ecx
je 0x1027d81
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [0x102c6b0]
jg 0x10281b5
cmp dword [eax], 0xffffffff
jne 0x10281b5
push esi
push edi
xor eax, eax
inc eax
lea ecx, [ebp - 0x534]
push ecx
push eax
push ebx
push 0x1001c94
push 0x80000001
mov dword [ebp - 0x534], ebx
mov dword [ebp - 0x520], ebx
mov dword [ebp - 0x52c], eax
mov dword [0x102c6ac], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, 0x8000080
jne 0x1027eea
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x530]
push eax
push ebx
push 0x100c2b0
push dword [ebp - 0x534]
mov dword [ebp - 0x530], 1
mov dword [ebp - 0x51c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1027e8e
cmp dword [ebp - 0x530], 1
jne 0x1027e8e
push ebx
push edi
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 5], bl
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x538], eax
je 0x1027e63
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x1027e46
xor eax, eax
push dword [ebp - 0x538]
mov ecx, 0x7a120
cmp ecx, eax
sbb eax, eax
neg eax
mov dword [ebp - 0x52c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x52c], ebx
push ebx
sete al
push edi
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call esi
mov ecx, dword [ebp - 0x524]
mov dword [ecx], eax
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x530]
push eax
push ebx
push 0x100c294
push dword [ebp - 0x534]
mov dword [ebp - 0x51c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1027ecc
cmp dword [ebp - 0x530], 4
je 0x1027ed2
mov dword [ebp - 0x520], ebx
movzx eax, word [ebp - 0x520]
push dword [ebp - 0x534]
mov dword [0x102c6b0], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x524]
cmp dword [eax], 0xffffffff
jne 0x1028036
mov eax, dword [0x102c6b0]
cmp eax, ebx
jne 0x1027f0a
push 5
pop eax
mov dword [0x102c6b0], eax
cmp dword [ebp + 0xc], eax
jg 0x1028036
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1028036
lea eax, [ebp - 0x108]
push eax
call fcn.01016ce1
push dword [ebp - 0x528]
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.01018165
test eax, eax
jl 0x1028036
push ebx
push edi
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x108]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x528], eax
je 0x1027fa3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x1027f86
xor eax, eax
push dword [ebp - 0x528]
mov ecx, 0x7a120
cmp ecx, eax
sbb eax, eax
neg eax
mov dword [ebp - 0x52c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x52c], ebx
push ebx
sete al
push edi
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
mov dword [ebp - 0x51c], eax
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call esi
cmp eax, 0xffffffff
mov ecx, dword [ebp - 0x524]
mov dword [ecx], eax
jne 0x1028036
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1028036
lea eax, [ebp - 0x20c]
push eax
call fcn.01016ce1
push 0x100c284
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01018165
test eax, eax
jl 0x1028036
push ebx
push edi
push dword [ebp - 0x51c]
lea eax, [ebp - 0x20c]
push ebx
push 1
push 0x40000000
push eax
call esi
mov ecx, dword [ebp - 0x524]
mov dword [ecx], eax
mov eax, dword [ebp - 0x524]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10281b3
cmp dword [ebp - 0x52c], ebx
jne 0x102805a
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x548]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push dword [0x102c6b0]
movzx eax, word [ebp - 0x53c]
push eax
movzx eax, word [ebp - 0x53e]
push eax
movzx eax, word [ebp - 0x540]
push eax
movzx eax, word [ebp - 0x542]
push eax
movzx eax, word [ebp - 0x546]
push eax
movzx eax, word [ebp - 0x548]
push eax
push 0x100c230
lea eax, [ebp - 0x108]
push 0x81
push eax
call fcn.01018137
lea eax, [ebp - 0x108]
add esp, 0x28
mov dword [ebp - 0x520], ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10280c5
mov edi, dword [ebp - 0x524]
push ebx
sub eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x520]
push ecx
push eax
lea eax, [ebp - 0x108]
push eax
push dword [edi]
call esi
push 0x7f
lea eax, [ebp - 0x208]
push eax
call fcn.01016ffe
push edx
push eax
call fcn.0101835e
call fcn.0101963a
push 0x103
lea ecx, [ebp - 0x518]
push ecx
push edx
push eax
call fcn.0101835e
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push ebx
push 4
mov dword [ebp - 0x528], eax
call fcn.01017179
test eax, eax
mov dword [ebp - 0x51c], 0x100c22c
jne 0x1028147
mov dword [ebp - 0x51c], 0x100c228
push 0x100c218
lea eax, [ebp - 0x518]
push eax
movzx eax, word [ebp - 0x528]
push eax
call fcn.01027cb1
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x51c]
lea eax, [ebp - 0x310]
push 0x100c1b8
push 0x81
push eax
call fcn.01018137
lea eax, [ebp - 0x310]
add esp, 0x24
mov dword [ebp - 0x520], ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1028196
sub eax, ecx
push ebx
lea ecx, [ebp - 0x520]
push ecx
push eax
lea eax, [ebp - 0x310]
push eax
push dword [edi]
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0101672d
leave
ret 0xc