Function at 0x10365e1
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, 0x74c
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp dword [0x1048be4], ebx
mov dword [ebp - 0x728], eax
je 0x1036622
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [0x1048be8]
jg 0x1036b3d
cmp dword [eax], 0xffffffff
jne 0x1036b3d
push esi
push edi
xor eax, eax
lea ecx, [ebp - 0x73c]
push ecx
inc eax
push eax
push ebx
push 0x1002a98
push 0x80000001
mov dword [ebp - 0x73c], ebx
mov dword [ebp - 0x734], ebx
mov dword [ebp - 0x730], ebx
mov dword [0x1048be4], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, 0x8000080
jne 0x103678b
lea eax, [ebp - 0x724]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x738]
push eax
push ebx
push 0x1007a2c
push dword [ebp - 0x73c]
mov dword [ebp - 0x738], 1
mov dword [ebp - 0x724], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x103672f
cmp dword [ebp - 0x738], 1
jne 0x103672f
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 - 0x72c], eax
je 0x1036704
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x10366e7
xor eax, eax
push dword [ebp - 0x72c]
mov ecx, 0x7a120
cmp ecx, eax
sbb eax, eax
neg eax
mov dword [ebp - 0x730], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x730], 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 - 0x728]
mov dword [ecx], eax
lea eax, [ebp - 0x724]
push eax
lea eax, [ebp - 0x734]
push eax
lea eax, [ebp - 0x738]
push eax
push ebx
push 0x1007a10
push dword [ebp - 0x73c]
mov dword [ebp - 0x724], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x103676d
cmp dword [ebp - 0x738], 4
je 0x1036773
mov dword [ebp - 0x734], ebx
movzx eax, word [ebp - 0x734]
push dword [ebp - 0x73c]
mov dword [0x1048be8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x728]
cmp dword [eax], 0xffffffff
jne 0x1036999
mov eax, dword [0x1048be8]
cmp eax, ebx
jne 0x10367ab
push 4
pop eax
mov dword [0x1048be8], eax
cmp dword [ebp + 0xc], eax
jg 0x1036999
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1036999
lea eax, [ebp - 0x108]
push eax
call fcn.0103243d
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.01033b73
test eax, eax
jl 0x1036999
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 - 0x72c], eax
je 0x1036841
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x1036824
xor eax, eax
push dword [ebp - 0x72c]
mov ecx, 0x7a120
cmp ecx, eax
sbb eax, eax
neg eax
mov dword [ebp - 0x730], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x730], ebx
push ebx
sete al
push edi
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
mov dword [ebp - 0x724], eax
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call esi
cmp eax, 0xffffffff
mov ecx, dword [ebp - 0x728]
mov dword [ecx], eax
jne 0x10368d4
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x10368d4
lea eax, [ebp - 0x20c]
push eax
call fcn.0103243d
push 0x1007a00
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01033b73
test eax, eax
jl 0x10368d4
push ebx
push edi
push dword [ebp - 0x724]
lea eax, [ebp - 0x20c]
push ebx
push 1
push 0x40000000
push eax
call esi
mov ecx, dword [ebp - 0x728]
mov dword [ecx], eax
mov eax, dword [ebp - 0x728]
cmp dword [eax], 0xffffffff
jne 0x1036999
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1036999
lea eax, [ebp - 0x20c]
push eax
call fcn.0103243d
push 0x10079f4
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01033b73
test eax, eax
jl 0x1036999
push ebx
push edi
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x72c], eax
je 0x103696e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x1036951
xor eax, eax
push dword [ebp - 0x72c]
mov ecx, 0x7a120
cmp ecx, eax
sbb eax, eax
neg eax
mov dword [ebp - 0x730], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x730], ebx
push ebx
sete al
push edi
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call esi
mov ecx, dword [ebp - 0x728]
mov dword [ecx], eax
mov eax, dword [ebp - 0x728]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1036b3b
cmp dword [ebp - 0x730], ebx
jne 0x10369bd
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x74c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push dword [0x1048be8]
movzx eax, word [ebp - 0x740]
push eax
movzx eax, word [ebp - 0x742]
push eax
movzx eax, word [ebp - 0x744]
push eax
movzx eax, word [ebp - 0x746]
push eax
movzx eax, word [ebp - 0x74a]
push eax
movzx eax, word [ebp - 0x74c]
push eax
push 0x1007998
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0103651a
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x28
test eax, eax
jl 0x1036a56
lea eax, [ebp - 0x108]
mov dword [ebp - 0x734], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1036a33
push ebx
sub eax, edx
lea ecx, [ebp - 0x734]
push ecx
push eax
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 0x728]
push dword [eax]
call esi
push 0x7f
lea eax, [ebp - 0x208]
push eax
call fcn.01032768
push edx
push eax
call fcn.01033e10
call fcn.01034844
push 0x103
lea ecx, [ebp - 0x518]
push ecx
push edx
push eax
call fcn.01033e10
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [ebp - 0x72c], eax
push edi
lea eax, [ebp - 0x720]
push eax
call fcn.0103532f
test eax, eax
je 0x1036b3b
push ebx
push 4
call fcn.010328f3
test eax, eax
mov dword [ebp - 0x724], 0x1007994
jne 0x1036ac7
mov dword [ebp - 0x724], 0x1007990
lea eax, [ebp - 0x720]
push eax
lea eax, [ebp - 0x518]
push eax
movzx eax, word [ebp - 0x72c]
push eax
call fcn.01036555
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x724]
lea eax, [ebp - 0x310]
push 0x1007930
push edi
push eax
call fcn.0103651a
add esp, 0x24
test eax, eax
jl 0x1036b3b
lea eax, [ebp - 0x310]
mov dword [ebp - 0x734], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1036b18
push ebx
sub eax, edx
lea ecx, [ebp - 0x734]
push ecx
push eax
lea eax, [ebp - 0x310]
push eax
mov eax, dword [ebp - 0x728]
push dword [eax]
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01031a01
leave
ret 0xc