Function at 0x422b8d
Capabilities:
Check os version
Delete file
Get file size
Get system information on windows
Query or enumerate registry value
Read file on windows

Disassembly:
sub esp, 0x418
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push ebp
mov ebp, dword [esp + 0x428]
push esi
push edi
mov edi, dword [esp + 0x42c]
push edi
mov dword [esp + 0x24], ebp
call fcn.004047b6
cmp dword [edi + 8], 0
pop ecx
je 0x422d61
push 0x64
pop edx
push 0x62
pop eax
push 0x67
mov word [esp + 0xf6], ax
pop eax
push 0x68
mov word [esp + 0xf8], ax
pop eax
push 0x65
mov word [esp + 0xfa], ax
pop eax
push 0x6c
pop ecx
push 0x70
pop ebx
mov word [esp + 0xf8], ax
push 0x2e
pop eax
mov word [esp + 0xfe], ax
xor eax, eax
mov word [esp + 0x106], ax
lea eax, [esp + 0xf0]
push eax
mov word [esp + 0xf4], dx
mov word [esp + 0xfe], cx
mov word [esp + 0x100], bx
mov word [esp + 0x104], dx
mov word [esp + 0x106], cx
mov word [esp + 0x108], cx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x422d61
movdqa xmm0, xmmword [str.MiniDumpWriteDum]
lea ecx, [esp + 0x108]
push ecx
push eax
movdqu xmmword [esp + 0x110], xmm0
mov byte [esp + 0x120], bl
mov byte [esp + 0x121], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x422d57
lea eax, [esp + 0x21c]
push eax
call fcn.00423342
pop ecx
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea eax, [esp + 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [edi + 4]
mov esi, eax
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x24]
mov ecx, dword [edi + 8]
mov dword [esp + 0x28], ecx
xor ecx, ecx
push ecx
push ecx
push eax
push ecx
push esi
push dword [edi]
mov dword [esp + 0x44], 1
push dword [edi + 0x9c]
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0xa0]
test eax, eax
je 0x422d08
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x220]
push eax
call fcn.004201a7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x422d49
mov ecx, dword [edi + 0xa4]
xor eax, eax
push eax
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x1c]
mov word [esp + 0x1c], 0x64
push esi
push eax
call fcn.0041eaf0
push esi
call fcn.0040507c
pop ecx
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x98
lea eax, [esp + 0x5c]
mov dword [esp + 0x58], 0x9c
push 0
push eax
call fcn.004bf040
add esp, 0xc
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
imul eax, dword [esp + 0x58], 0xa
lea ebx, [edi + 0x5c]
add eax, dword [esp + 0x5c]
mov dword [edi + 0x58], eax
lea eax, [esp + 0x18]
push eax
push 0x3b4cdfc6
push 0xd1ef26f9
push 0xf5012de9
call fcn.00401b1b
add esp, 0xc
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x422ea7
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 1
push eax
lea eax, [esp + 0x120]
mov dword [esp + 0x18], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0xa7e65ba
push 0xe0dd9ca4
push 0xc4339784
call fcn.00401b1b
add esp, 0xc
push eax
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xa
push 0x80662086
push 0x6ac5d99f
push 0x4e2bd54d
call fcn.00401b1b
add esp, 0xc
push eax
lea eax, [esp + 0x124]
push eax
call fcn.004bb020
add esp, 0xc
lea esi, [esp + 0x126]
test eax, eax
lea eax, [esp + 0x11c]
cmovne esi, eax
cmp dword [esp + 0x60], 0x55f0
jb 0x422e89
push 0xa
push 0x32eb636d
push 0xd8489a74
push 0xfca696b8
call fcn.00401b1b
add esp, 0xc
push eax
push esi
call fcn.004bb020
add esp, 0xc
test eax, eax
jne 0x422e89
mov byte [esi + 9], 0x31
mov ecx, ebx
sub ecx, esi
mov al, byte [esi]
mov byte [ecx + esi], al
inc esi
test al, al
jne 0x422e8d
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422e9c
sub ecx, edx
add ebx, ecx
cmp byte [esp + 0x68], 0
je 0x422ec4
mov byte [ebx], 0x5f
lea ecx, [esp + 0x68]
inc ebx
mov eax, ecx
sub ebx, eax
mov al, byte [ecx]
mov byte [ebx + ecx], al
inc ecx
test al, al
jne 0x422eba
mov eax, dword [esp + 0x60]
mov dword [edi + 0x54], eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [esp + 0x30]
push 3
pop esi
test eax, eax
je 0x422f0f
cmp eax, 5
je 0x422f03
cmp eax, 9
je 0x422efa
cmp eax, 0xc
jne 0x422f06
mov dword [edi + 0x50], 2
jmp 0x422f13
mov dword [edi + 0x50], 1
jmp 0x422f13
mov dword [edi + 0x50], esi
mov dword [edi + 0x50], 4
jmp 0x422f13
and dword [edi + 0x50], 0
push edi
call fcn.00404c0a
pop ecx
test ebp, ebp
je 0x422fe1
push 0
push 0x80
push esi
push 0
push 1
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x422fe1
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
lea ecx, [ebp - 1]
cmp ecx, 0xffffe
ja 0x422fda
lea ecx, [ebp + 1]
push ecx
call fcn.00405090
mov esi, eax
pop ecx
test esi, esi
je 0x422fda
push 0
lea eax, [esp + 0x18]
push eax
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [esi + ebp], 0
mov ebp, dword [esp + 0x20]
push 0x5c
push ebp
call fcn.004bb2a8
pop ecx
pop ecx
test eax, eax
jne 0x422f98
mov eax, ebp
jmp 0x422f9b
add eax, 2
xor edx, edx
lea ecx, [esp + 0x11c]
push edx
push edx
push 0x100
push ecx
push 0xffffffffffffffff
push eax
push edx
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [edi + 0xa4]
lea eax, [esp + 0x11c]
push 0
push 0
push dword [esp + 0x1c]
push esi
push eax
call fcn.0041eaf0
push esi
call fcn.0040507c
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b9a6c
add esp, 0x418
ret