Function at 0x43af70
Capabilities:
Check os version
Get system information on windows
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x5c5b9c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x2c
xor ebx, ebx
lea eax, [esi + 4]
push ebx
push eax
mov dword [esi], vtable.CSysInfo.0
call fcn.00531b10
push 0x80
lea edi, [esi + 0x30]
push ebx
push edi
call fcn.00531b10
xor eax, eax
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], eax
mov dword [esi + 0xb8], eax
mov dword [esi + 0xbc], eax
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc4], eax
push 0x11c
lea eax, [ebp - 0x120]
push ebx
push eax
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0x2d0], ebx
mov dword [ebp - 0x23c], ebx
call fcn.00531b10
add esp, 0x24
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [ebp - 0x118]
push edx
push str.CSysInfo::CSysInfo___osviEx.dwMinorVersion__1_d__n
push 5
mov dword [ebp - 0x238], eax
call fcn.00411380
mov eax, dword [ebp - 0x11c]
push eax
push str.CSysInfo::CSysInfo___osviEx.dwMajorVersion__1_d__n
push 5
call fcn.00411380
add esp, 0x18
cmp dword [ebp - 0x238], 0
mov ebx, 1
je 0x43b40b
mov eax, dword [ebp - 0x11c]
cmp eax, 0xa
jbe 0x43b11b
push str.CSysInfo::CSysInfo___osviEx.dwMajorVersion___10_n
push 5
call fcn.00411380
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x118]
mov ax, word [ebp - 0xc]
mov dword [esi + 0xc8], ecx
mov cx, word [ebp - 0xa]
add esp, 8
mov dword [esi + 0xcc], edx
mov dword [edi], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x54], ebx
mov word [esi + 0xac], ax
mov word [esi + 0xae], cx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa4], ebx
cmp byte [ebp - 6], bl
je 0x43b10f
mov dword [esi + 0x34], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa8], ebx
mov ecx, esi
call fcn.0043ae90
jmp 0x43b52e
jne 0x43b1bf
push str.CSysInfo::CSysInfo___osviEx.dwMajorVersion__10_n
push 5
call fcn.00411380
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x118]
mov cx, word [ebp - 0xc]
mov dword [esi + 0xc8], edx
mov dx, word [ebp - 0xa]
add esp, 8
mov dword [esi + 0xcc], eax
mov dword [edi], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x7c], ebx
mov word [esi + 0xac], cx
mov word [esi + 0xae], dx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa4], ebx
cmp byte [ebp - 6], bl
je 0x43b1b3
mov dword [esi + 0x34], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa8], ebx
mov ecx, esi
call fcn.0043ae90
jmp 0x43b52e
cmp eax, 6
jbe 0x43b266
push str.CSysInfo::CSysInfo___osviEx.dwMajorVersion___6_n
push 5
call fcn.00411380
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
mov dx, word [ebp - 0xc]
mov dword [esi + 0xc8], eax
mov ax, word [ebp - 0xa]
add esp, 8
mov dword [esi + 0xcc], ecx
mov dword [edi], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x54], ebx
mov word [esi + 0xac], dx
mov word [esi + 0xae], ax
mov dword [esi + 0x84], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x94], ebx
cmp byte [ebp - 6], bl
je 0x43b25a
mov dword [esi + 0x34], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x98], ebx
mov ecx, esi
call fcn.0043ae90
jmp 0x43b52e
jne 0x43b341
push str.CSysInfo::CSysInfo___osviEx.dwMajorVersion__6_n
push 5
call fcn.00411380
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x118]
mov dx, word [ebp - 0xc]
mov dword [esi + 0xc8], ecx
mov cx, word [ebp - 0xa]
add esp, 8
mov dword [esi + 0xcc], eax
mov dword [edi], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov word [esi + 0xac], dx
mov word [esi + 0xae], cx
cmp eax, 3
ja case.0x43b2bf.3
jmp dword [eax*4 + 0x43b718]
mov dword [esi + 0x4c], ebx
jmp 0x43b2ea
mov dword [esi + 0x54], ebx
jmp 0x43b2e7
mov dword [esi + 0x5c], ebx
jmp 0x43b2e1
mov dword [esi + 0x94], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x7c], ebx
cmp byte [ebp - 6], bl
je 0x43b335
mov dword [esi + 0x34], ebx
cmp eax, 3
ja case.0x43b2f7.3
jmp dword [eax*4 + 0x43b728]
mov ecx, esi
mov dword [esi + 0x50], ebx
mov dword [esi + 0x78], ebx
call fcn.0043ae90
jmp 0x43b52e
mov dword [esi + 0x58], ebx
jmp 0x43b32c
mov dword [esi + 0x60], ebx
jmp 0x43b326
mov dword [esi + 0x98], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x78], ebx
mov ecx, esi
call fcn.0043ae90
jmp 0x43b52e
cmp eax, 5
jne 0x43b40b
push str.CSysInfo::CSysInfo___osviEx.dwMajorVersion__5_n
push eax
call fcn.00411380
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x118]
mov cx, word [ebp - 0xc]
mov dword [esi + 0xc8], edx
mov dx, word [ebp - 0xa]
add esp, 8
mov dword [esi + 0xcc], eax
sub eax, 0
mov dword [edi], ebx
mov word [esi + 0xac], cx
mov word [esi + 0xae], dx
je 0x43b3ed
sub eax, ebx
je 0x43b3dc
sub eax, ebx
je 0x43b3a9
mov dword [esi + 0x48], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
jmp 0x43b52e
push str.CSysInfo::CSysInfo___swith_case__2_n
push 5
call fcn.00411380
add esp, 8
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
cmp byte [ebp - 6], bl
je 0x43b3d4
mov dword [esi + 0x34], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x70], ebx
jmp 0x43b52e
mov dword [esi + 0x44], ebx
jmp 0x43b52e
mov dword [esi + 0x44], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
jmp 0x43b52e
mov dword [esi + 0x64], ebx
cmp byte [ebp - 6], bl
je 0x43b403
mov dword [esi + 0x34], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x68], ebx
jmp 0x43b52e
mov dword [esi + 0x3c], ebx
jmp 0x43b52e
push str.CIstDrvApp::InitInstance_osviEx.dwMajorVersion__other_n
push 5
call fcn.00411380
push 0x114
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.00531b10
add esp, 0x14
lea ecx, [ebp - 0x234]
push ecx
mov dword [ebp - 0x234], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43b52e
mov eax, dword [ebp - 0x224]
sub eax, ebx
mov ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x22c]
mov dword [esi + 0xc8], ecx
mov dword [esi + 0xcc], edx
je 0x43b4c4
sub eax, ebx
jne 0x43b52e
mov dword [edi], ebx
cmp ecx, 4
jne 0x43b52e
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.Service_Pack_6a
mov dword [esi + 0x38], ebx
call edi
lea edx, [ebp - 0x220]
push edx
mov dword [ebp - 0x238], eax
call edi
cmp eax, dword [ebp - 0x238]
jl 0x43b52e
lea eax, [ebp - 0x206]
push eax
call fcn.00532dbb
add esp, 4
mov word [esi + 0xac], ax
jmp 0x43b52e
movzx eax, word [ebp - 0x21e]
sub eax, 0x41
mov dword [esi + 4], ebx
je 0x43b4ea
sub eax, ebx
je 0x43b4e5
sub eax, ebx
je 0x43b4e0
mov dword [esi + 0x2c], ebx
jmp 0x43b4ed
mov dword [esi + 0x28], ebx
jmp 0x43b4ed
mov dword [esi + 0x24], ebx
jmp 0x43b4ed
mov dword [esi + 0x20], ebx
test edx, edx
je 0x43b52b
cmp edx, 0xa
je 0x43b4fb
cmp edx, 0x5a
jmp 0x43b50a
mov eax, dword [ebp - 0x228]
shr eax, 0x10
cmp al, 0xa
je 0x43b51a
cmp al, 0x5a
jne 0x43b52e
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
jmp 0x43b52e
cmp dword [esi + 0x20], 0
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
je 0x43b52e
mov dword [esi + 0x18], ebx
jmp 0x43b52e
mov dword [esi + 8], ebx
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x43b704
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push edi
mov dword [ebp - 0x238], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 0x238], 0
mov edi, eax
je 0x43b580
lea eax, [esi + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x238]
cmp dword [esi + 0xb0], 0
je 0x43b5ed
xor eax, eax
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], eax
test edi, edi
je 0x43b5ed
lea ecx, [ebp - 0x288]
push ecx
call edi
movzx eax, word [ebp - 0x288]
cmp eax, 6
je 0x43b5e7
cmp eax, 9
jne 0x43b5ed
mov dword [esi + 0xc0], ebx
jmp 0x43b5ed
mov dword [esi + 0xc4], ebx
xor eax, eax
lea edx, [ebp - 0x264]
push edx
mov dword [esi + 0xb4], ebx
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x264]
cmp eax, 6
je 0x43b65d
cmp eax, 9
je 0x43b655
mov dword [esi + 0xb4], 0
jmp 0x43b663
mov dword [esi + 0xb8], ebx
jmp 0x43b663
mov dword [esi + 0xbc], ebx
push 0x200
lea edi, [esi + 0xd0]
push 0
push edi
call fcn.00531b10
add esp, 0xc
cmp dword [esi + 0x30], 0
je 0x43b6da
lea eax, [ebp - 0x23c]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43b6da
lea ecx, [ebp - 0x240]
push ecx
push edi
lea edx, [ebp - 0x28c]
push edx
push eax
mov eax, dword [ebp - 0x23c]
push 0x5619c8
push eax
mov dword [ebp - 0x240], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [esi + 0xb4], eax
je 0x43b704
cmp byte [ebp - 6], bl
jne 0x43b704
cmp dword [ebp - 0x11c], 5
jne 0x43b704
cmp dword [ebp - 0x118], 2
jne 0x43b704
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], eax
mov dword [esi + 0x70], eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00530f8d
mov esp, ebp
pop ebp
ret