Function at 0x42271a
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 [0x517490]
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.00404490
cmp dword [edi + 8], 0
pop ecx
je 0x4228ee
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 0x4228ee
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 0x4228e4
lea eax, [esp + 0x21c]
push eax
call fcn.00422ed1
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 0x422895
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x220]
push eax
call fcn.0041fd60
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4228d6
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.0041e6a9
push esi
call fcn.00404d44
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.004bea90
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 0xa2ee8df8
push 0x4d6c43b2
push 0xb6de1c3e
call fcn.0040196b
add esp, 0xc
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x422a34
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 0x3e289d32
push 0xd1aa5359
push 0x2a180ce5
call fcn.0040196b
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 0x2e01733e
push 0xc183bd52
push 0x3a31e51c
call fcn.0040196b
add esp, 0xc
push eax
lea eax, [esp + 0x124]
push eax
call fcn.004baa70
add esp, 0xc
lea esi, [esp + 0x126]
test eax, eax
lea eax, [esp + 0x11c]
cmovne esi, eax
cmp dword [esp + 0x60], 0x55f0
jb 0x422a16
push 0xa
push 0x9dc45d80
push 0x724693ec
push 0x89f4cbbc
call fcn.0040196b
add esp, 0xc
push eax
push esi
call fcn.004baa70
add esp, 0xc
test eax, eax
jne 0x422a16
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 0x422a1a
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422a29
sub ecx, edx
add ebx, ecx
cmp byte [esp + 0x68], 0
je 0x422a51
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 0x422a47
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 0x422a9c
cmp eax, 5
je 0x422a90
cmp eax, 9
je 0x422a87
cmp eax, 0xc
jne 0x422a93
mov dword [edi + 0x50], 2
jmp 0x422aa0
mov dword [edi + 0x50], 1
jmp 0x422aa0
mov dword [edi + 0x50], esi
mov dword [edi + 0x50], 4
jmp 0x422aa0
and dword [edi + 0x50], 0
push edi
call fcn.004048dd
pop ecx
test ebp, ebp
je 0x422b6e
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 0x422b6e
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 0x422b67
lea ecx, [ebp + 1]
push ecx
call fcn.00404d58
mov esi, eax
pop ecx
test esi, esi
je 0x422b67
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.004bacf8
pop ecx
pop ecx
test eax, eax
jne 0x422b25
mov eax, ebp
jmp 0x422b28
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.0041e6a9
push esi
call fcn.00404d44
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.004b94b6
add esp, 0x418
ret