Function at 0x10556e3
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, 0x748
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x728], eax
cmp dword [0x10746b4], ebx
je 0x1055724
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [0x10746b8]
jg 0x1055b99
cmp dword [eax], 0xffffffff
jne 0x1055b99
push esi
push edi
xor eax, eax
lea ecx, [ebp - 0x738]
push ecx
inc eax
push eax
push ebx
push 0x1009434
push 0x80000001
mov dword [ebp - 0x738], ebx
mov dword [ebp - 0x72c], ebx
xor esi, esi
mov dword [0x10746b4], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
jne 0x1055882
lea eax, [ebp - 0x730]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x734]
push eax
push ebx
push 0x1009424
push dword [ebp - 0x738]
mov dword [ebp - 0x734], 1
mov dword [ebp - 0x730], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1055826
cmp dword [ebp - 0x734], 1
jne 0x1055826
push ebx
push 0x8000080
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 5], bl
call edi
mov dword [ebp - 0x724], eax
cmp eax, 0xffffffff
je 0x10557fb
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x10557e4
xor eax, eax
push dword [ebp - 0x724]
mov ecx, 0x7a120
cmp ecx, eax
sbb esi, esi
neg esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp esi, ebx
sete al
push ebx
push 0x8000080
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call edi
mov ecx, dword [ebp - 0x728]
mov dword [ecx], eax
lea eax, [ebp - 0x730]
push eax
lea eax, [ebp - 0x72c]
push eax
lea eax, [ebp - 0x734]
push eax
push ebx
push 0x1009408
push dword [ebp - 0x738]
mov dword [ebp - 0x730], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1055864
cmp dword [ebp - 0x734], 4
je 0x105586a
mov dword [ebp - 0x72c], ebx
movzx eax, word [ebp - 0x72c]
push dword [ebp - 0x738]
mov dword [0x10746b8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x728]
cmp dword [eax], 0xffffffff
jne 0x10559f9
mov eax, dword [0x10746b8]
cmp eax, ebx
jne 0x10558a2
push 4
pop eax
mov dword [0x10746b8], eax
cmp dword [ebp + 0xc], eax
jg 0x10559f9
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x10559f9
lea eax, [ebp - 0x108]
push eax
call fcn.01055e43
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.010486d3
test eax, eax
jl 0x10559f9
push ebx
push 0x8000080
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x108]
push eax
call edi
mov dword [ebp - 0x724], eax
cmp eax, 0xffffffff
je 0x1055936
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x105591f
xor eax, eax
push dword [ebp - 0x724]
mov ecx, 0x7a120
cmp ecx, eax
sbb esi, esi
neg esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x728]
cmp dword [eax], 0xffffffff
jne 0x10559f9
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x10559f9
lea eax, [ebp - 0x20c]
push eax
call fcn.01055e43
push 0x10093fc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.010486d3
test eax, eax
jl 0x10559f9
push ebx
push 0x8000080
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
call edi
mov dword [ebp - 0x724], eax
cmp eax, 0xffffffff
je 0x10559ce
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x10559b7
xor eax, eax
push dword [ebp - 0x724]
mov ecx, 0x7a120
cmp ecx, eax
sbb esi, esi
neg esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp esi, ebx
sete al
push ebx
push 0x8000080
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call edi
mov ecx, dword [ebp - 0x728]
mov dword [ecx], eax
mov eax, dword [ebp - 0x728]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1055b97
cmp esi, ebx
jne 0x1055a19
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x748]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push dword [0x10746b8]
movzx eax, word [ebp - 0x73c]
push eax
movzx eax, word [ebp - 0x73e]
push eax
movzx eax, word [ebp - 0x740]
push eax
movzx eax, word [ebp - 0x742]
push eax
movzx eax, word [ebp - 0x746]
push eax
movzx eax, word [ebp - 0x748]
push eax
push 0x10093a0
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0104d247
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x28
test eax, eax
jl 0x1055ab2
lea eax, [ebp - 0x108]
mov dword [ebp - 0x72c], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1055a8f
push ebx
sub eax, edx
lea ecx, [ebp - 0x72c]
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.01056261
push edx
push eax
call fcn.01058530
call fcn.010590cb
push 0x103
lea ecx, [ebp - 0x518]
push ecx
push edx
push eax
call fcn.01058530
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [ebp - 0x724], eax
push edi
lea eax, [ebp - 0x720]
push eax
call fcn.0105a9b1
test eax, eax
je 0x1055b97
push ebx
push 4
call fcn.010563ec
mov dword [ebp - 0x730], 0x100939c
test eax, eax
jne 0x1055b23
mov dword [ebp - 0x730], 0x1009398
lea eax, [ebp - 0x720]
push eax
lea eax, [ebp - 0x518]
push eax
movzx eax, word [ebp - 0x724]
push eax
call fcn.01055657
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x730]
lea eax, [ebp - 0x310]
push 0x1009338
push edi
push eax
call fcn.0104d247
add esp, 0x24
test eax, eax
jl 0x1055b97
lea eax, [ebp - 0x310]
mov dword [ebp - 0x72c], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1055b74
push ebx
sub eax, edx
lea ecx, [ebp - 0x72c]
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.01047480
leave
ret 0xc