Function at 0x442f38
Capabilities:
Check os version
Delete file
Delete registry key
Delete registry value
Get common file path
Get file size
Query or enumerate registry value
Read file on windows
Set registry value
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x4a8]
sub esp, 0x528
mov eax, dword [0x4755d0]
xor eax, ebp
mov dword [ebp + 0x4a4], eax
mov eax, dword [ebp + 0x4bc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x4b8]
xor ebx, ebx
mov esi, 0x1ff
push esi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x5f]
push ebx
push eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x60], bl
call fcn.00448090
push esi
lea eax, [ebp + 0x2a5]
push ebx
push eax
mov byte [ebp + 0x2a4], bl
call fcn.00448090
push 0x103
lea eax, [ebp + 0x1a1]
push ebx
push eax
mov byte [ebp + 0x1a0], bl
call fcn.00448090
mov eax, dword [ebp + 0x4c0]
mov ecx, dword [ebp + 0x4b0]
add esp, 0x24
cmp eax, ebx
je 0x4437ba
cmp byte [eax], bl
je 0x4437ba
lea edx, [ecx - 1]
cmp edx, 3
ja 0x4437ba
cmp edi, ebx
jne 0x442fef
cmp ecx, 1
je 0x442fef
cmp ecx, 4
jne 0x4437ba
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call esi
cmp eax, 0x1e0
jge 0x443041
push 0x25
push dword [ebp + 0x4c0]
call fcn.00447970
pop ecx
pop ecx
test eax, eax
je 0x443041
lea eax, [ebp + 0x4c4]
push eax
push dword [ebp + 0x4c0]
call fcn.0044250b
test eax, eax
je 0x443072
lea eax, [ebp + 0x4c4]
push eax
push dword [ebp + 0x4c0]
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
jmp 0x443072
push dword [ebp + 0x4c0]
call esi
inc eax
cmp eax, 0x1ff
jle 0x443058
mov eax, 0x1ff
jmp 0x443061
push dword [ebp + 0x4c0]
call esi
inc eax
push eax
push dword [ebp + 0x4c0]
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [0x478618], bl
je 0x443151
lea eax, [ebp - 0x60]
push str._vTask_
push eax
call fcn.00447a30
pop ecx
pop ecx
test eax, eax
je 0x443151
lea eax, [ebp - 0x60]
push str._vTask_
push eax
call fcn.00447a30
mov dword [ebp - 0x68], eax
inc dword [ebp - 0x68]
pop ecx
pop ecx
je 0x4430e3
mov eax, dword [ebp - 0x68]
add eax, 5
cmp eax, ebx
je 0x4430e3
mov eax, dword [ebp - 0x68]
add eax, 5
push eax
call esi
inc eax
test eax, eax
jle 0x4430e3
mov eax, dword [ebp - 0x68]
add eax, 5
push eax
call esi
inc eax
push eax
mov eax, dword [ebp - 0x68]
add eax, 5
push eax
push dword [ebp - 0x68]
call fcn.00448130
add esp, 0xc
push 0x478618
call esi
cmp eax, 0x80
jle 0x4430fa
mov dword [ebp - 0x74], 0x80
jmp 0x443104
push 0x478618
call esi
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x74]
add eax, ecx
mov dword [ebp - 0x80], eax
cmp eax, ebx
je 0x443134
cmp ecx, ebx
je 0x443151
push ecx
call esi
inc eax
test eax, eax
jle 0x443134
push dword [ebp - 0x68]
call esi
inc eax
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x80]
call fcn.00448130
add esp, 0xc
cmp dword [ebp - 0x68], ebx
je 0x443151
cmp dword [ebp - 0x74], ebx
jle 0x443151
push dword [ebp - 0x74]
push 0x478618
push dword [ebp - 0x68]
call fcn.00447af0
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
call fcn.0044081d
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0x2a4]
push eax
mov dword [ebp - 0x74], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax - 1]
jmp 0x4431b5
cmp esi, 0x103
jge 0x4431b9
cmp byte [ebp + esi + 0x2a4], 0x5c
jne 0x4431a0
cmp byte [ebp + esi + 0x2a3], 0x5c
jne 0x4431b9
dec esi
mov al, byte [ebp + esi + 0x2a4]
mov ecx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov byte [ebp + ecx + 0x1a0], al
dec esi
cmp esi, ebx
jg 0x443183
mov eax, dword [ebp - 0x74]
mov byte [ebp + eax + 0x1a0], bl
lea eax, [ebp + 0x1a0]
push eax
call fcn.0044b650
cmp dword [ebp + 0x4b0], 3
pop ecx
mov byte [ebp + esi + 0x2a4], bl
jne 0x4431e6
cmp edi, ebx
je 0x4431e6
mov byte [edi], bl
cmp byte [ebp + 0x2a4], bl
je 0x4437c5
mov eax, dword [ebp + 0x4b0]
cmp eax, 2
jne 0x443412
lea eax, [ebp - 0x64]
push eax
mov esi, 0x2001f
push esi
push ebx
lea eax, [ebp + 0x2a4]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x443255
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push esi
push ebx
push 0x45c970
push ebx
lea eax, [ebp + 0x2a4]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x443255
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4437c7
cmp dword [ebp + 0x4b4], 7
jne 0x4432cb
xor eax, eax
mov dword [ebp - 0x70], eax
cmp byte [edi], bl
je 0x4432bd
cmp eax, dword [ebp - 0x78]
jae 0x4432bd
lea esi, [edi + eax]
cmp byte [esi], 0xd
jne 0x4432a0
lea ecx, [edi + eax + 1]
cmp byte [ecx], 0xa
jne 0x4432a0
cmp esi, ebx
je 0x44329d
cmp ecx, ebx
je 0x44329d
mov edx, dword [ebp - 0x78]
sub edx, eax
dec edx
cmp edx, ebx
jbe 0x44329d
push edx
push ecx
push esi
call fcn.00448130
mov eax, dword [ebp - 0x70]
add esp, 0xc
dec dword [ebp - 0x78]
lea esi, [edi + eax]
mov cl, byte [esi]
cmp cl, 0xd
je 0x4432af
cmp cl, 0xa
jne 0x4432b4
mov byte [esi], bl
mov eax, dword [ebp - 0x70]
inc eax
mov dword [ebp - 0x70], eax
cmp byte [edi + eax], bl
jne 0x443267
push 2
add eax, edi
push ebx
push eax
call fcn.00448090
add esp, 0xc
push dword [ebp - 0x78]
lea eax, [ebp + 0x1a0]
push edi
push dword [ebp + 0x4b4]
push ebx
push eax
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4432f2
mov ebx, dword [ebp - 0x78]
jmp 0x443245
cmp dword [ebp - 0x78], 0x200
jle 0x443245
lea eax, [ebp + 0x2a4]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp + 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp + 0x2a4]
cmp byte [eax + ecx - 1], 0x5c
je 0x44333b
push 0x45c800
mov eax, ecx
push eax
call esi
push ebx
push ebx
push 0x45e96c
push 0x45c800
lea eax, [ebp - 0x60]
push eax
call fcn.0044168f
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0x2a4]
push eax
call esi
push str..dat
lea eax, [ebp + 0x2a4]
push eax
call esi
lea eax, [ebp + 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push 0x80
push 4
push ebx
push 3
push 0xc0000000
lea eax, [ebp + 0x2a4]
push eax
call fcn.00410914
push ebx
mov esi, eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x78]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, ebx
je 0x4433b1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.FILE::
push ebx
lea eax, [ebp + 0x2a4]
push eax
call fcn.00441ac4
lea eax, [ebp + 0x2a4]
push eax
mov dword [ebp - 0x7c], 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov dword [ebp - 0x70], eax
lea eax, [ebp + 0x2a4]
push eax
push dword [ebp - 0x7c]
lea eax, [ebp + 0x1a0]
push ebx
push eax
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x64]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x6c]
jmp 0x4437c7
cmp eax, 1
je 0x44353c
cmp eax, 3
je 0x44353c
cmp eax, 4
jne 0x4437c5
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x64]
push eax
mov esi, 0x2001f
push esi
push ebx
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x68]
call edi
test eax, eax
jne 0x443455
push dword [ebp - 0x64]
call fcn.00440b62
jmp 0x44346f
lea eax, [ebp - 0x64]
push eax
push esi
push ebx
lea eax, [ebp + 0x2a4]
push eax
push dword [ebp - 0x68]
call edi
cmp eax, ebx
jne 0x44352b
cmp dword [ebp - 0x64], ebx
je 0x44347d
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x64]
push eax
push esi
push ebx
lea eax, [ebp + 0x2a4]
push eax
push dword [ebp - 0x68]
call edi
test eax, eax
jne 0x44352b
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x2a4]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp - 0x64]
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x70], 0x103
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp byte [ebp + 0x2a4], bl
je 0x4434f4
push 6
lea eax, [ebp + 0x2a4]
push str.FILE::
push eax
call fcn.00449ba0
add esp, 0xc
test eax, eax
jne 0x4434f4
lea eax, [ebp + 0x2aa]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp - 0x64]
call esi
test eax, eax
je 0x44352b
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp - 0x68]
call esi
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x443245
cmp dword [ebp - 0x64], ebx
je 0x4437c5
xor ebx, ebx
inc ebx
jmp 0x443245
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
call esi
cmp al, 5
jne 0x443556
call esi
shr eax, 8
test al, al
jne 0x443556
xor eax, eax
inc eax
jmp 0x443558
xor eax, eax
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x100
lea ecx, [ebp - 0x64]
push ecx
or eax, 1
push eax
push ebx
lea eax, [ebp + 0x2a4]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4437c5
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x6c]
push eax
push ebx
push 0x47c490
push ebx
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp - 0x64]
call esi
test eax, eax
je 0x4435de
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x4b0], 1
jne 0x4437c5
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x60]
cmp byte [eax + ecx - 1], 0x5c
jne 0x4437c5
xor eax, eax
inc eax
jmp 0x4437c7
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x2a4]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp - 0x64]
mov dword [ebp - 0x70], 0x1ff
call esi
test eax, eax
jne 0x443675
cmp byte [ebp + 0x2a4], bl
je 0x443675
push 6
lea eax, [ebp + 0x2a4]
push str.FILE::
push eax
call fcn.00449ba0
add esp, 0xc
test eax, eax
jne 0x443675
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
lea eax, [ebp + 0x2aa]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x74], eax
cmp eax, 0xffffffff
jne 0x44365a
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4437c5
push ebx
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x74], ebx
je 0x443675
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x4b0], 1
jne 0x44368f
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x6c]
jmp 0x4437c7
mov eax, dword [ebp - 0x6c]
cmp dword [ebp - 0x78], eax
jl 0x44364c
lea eax, [ebp - 0x6c]
push eax
push edi
lea eax, [ebp - 0x7c]
push eax
push ebx
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp - 0x64]
call esi
push dword [ebp - 0x64]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x4437bf
cmp dword [ebp - 0x7c], 7
jne 0x44372a
xor eax, eax
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x6c], ebx
jbe 0x44372a
lea esi, [edi + eax]
mov cl, byte [esi]
cmp cl, bl
jne 0x443721
cmp byte [edi + eax + 1], bl
je 0x44372a
cmp cl, bl
jne 0x443721
lea ecx, [edi + eax + 1]
cmp ecx, ebx
je 0x443704
cmp esi, ebx
je 0x443704
mov edx, dword [ebp - 0x6c]
sub edx, eax
je 0x443704
push edx
push esi
push ecx
call fcn.00448130
mov eax, dword [ebp - 0x70]
add esp, 0xc
lea ecx, [edi + eax]
cmp ecx, ebx
je 0x44371e
push 2
push 0x45e620
push ecx
call fcn.00447af0
mov eax, dword [ebp - 0x70]
add esp, 0xc
inc dword [ebp - 0x6c]
inc eax
mov dword [ebp - 0x70], eax
cmp eax, dword [ebp - 0x6c]
jb 0x4436d0
cmp edi, ebx
je 0x443687
cmp byte [edi], bl
je 0x443687
push 6
push str.FILE::
push edi
call fcn.00449ba0
add esp, 0xc
test eax, eax
jne 0x443687
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
lea eax, [edi + 6]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov byte [edi], bl
cmp esi, 0xffffffff
je 0x4437c5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x78], eax
jb 0x4437a3
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4437a6
mov dword [ebp - 0x6c], ebx
cmp esi, ebx
je 0x443687
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x443687
cmp ecx, 3
jne 0x4437c5
cmp edi, ebx
je 0x4437c5
mov byte [edi], bl
xor eax, eax
mov ecx, dword [ebp + 0x4a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448080
add ebp, 0x4a8
leave
ret