Function at 0x412783
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push 0x59c
mov eax, 0x4173ca
call fcn.00416037
mov esi, ecx
lea eax, [esi + 0x90]
push eax
mov dword [ebp - 0x55c], eax
mov dword [ebp - 0x558], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x2c], ebx
je 0x412a44
cmp dword [esi + 0x1c], ebx
jne 0x41280e
push 0x38
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x54c], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x4127e2
push eax
call fcn.004123b0
jmp 0x4127e4
xor eax, eax
mov byte [ebp - 4], bl
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], eax
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
mov dword [eax + 0x20], ecx
mov ecx, dword [esi + 0xc]
mov dword [eax + 0x24], ecx
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x1c]
mov dword [eax + 0x30], ecx
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x34], ecx
cmp dword [esi + 0x2c], ebx
je 0x412a44
cmp dword [esi + 0x20], ebx
jne 0x412a44
push 0x80
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x54c], eax
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x412841
push eax
call fcn.00412408
jmp 0x412843
xor eax, eax
mov byte [ebp - 4], bl
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 8]
mov dword [eax + 0x20], ecx
mov ecx, dword [esi + 0xc]
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x30], ecx
mov ecx, dword [esi + 0x14]
push pe_nt_image_headers32
mov dword [eax + 0x34], ecx
lea eax, [ebp - 0x544]
push ebx
push eax
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0x548]
push eax
mov dword [ebp - 0x548], 0x11c
call edi
cmp eax, ebx
jne 0x4128b6
lea eax, [ebp - 0x548]
push eax
mov dword [ebp - 0x548], 0x114
call edi
cmp eax, ebx
je 0x4128f0
mov eax, dword [esi + 0x20]
mov cx, word [ebp - 0x544]
mov word [eax + 0x38], cx
mov eax, dword [esi + 0x20]
mov cx, word [ebp - 0x540]
mov word [eax + 0x3a], cx
mov eax, dword [esi + 0x20]
mov cx, word [ebp - 0x434]
mov word [eax + 0x3e], cx
mov eax, dword [esi + 0x20]
mov cx, word [ebp - 0x53c]
mov word [eax + 0x3c], cx
jmp 0x41290c
mov eax, dword [esi + 0x20]
mov word [eax + 0x38], bx
mov eax, dword [esi + 0x20]
mov word [eax + 0x3a], bx
mov eax, dword [esi + 0x20]
mov word [eax + 0x3e], bx
mov eax, dword [esi + 0x20]
mov word [eax + 0x3c], bx
push 8
pop ecx
push str.GetNativeSystemInfo
xor eax, eax
mov dword [ebp - 0x58c], ebx
lea edi, [ebp - 0x588]
push str.kernel32.dll
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x412945
lea ecx, [ebp - 0x58c]
push ecx
call eax
jmp 0x412952
lea eax, [ebp - 0x58c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 0x20]
mov cx, word [ebp - 0x58c]
mov word [eax + 0x40], cx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, dword [esi + 0x20]
mov word [ecx + 0x42], ax
lea eax, [ebp - 0x550]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftInternet_Explorer
push closesocket
xor edi, edi
mov dword [ebp - 0x564], ebx
mov dword [ebp - 0x550], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412a35
push 0x410
lea eax, [ebp - 0x426]
push ebx
push eax
mov word [ebp - 0x428], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x554]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x54c]
push eax
push ebx
push str.Version
push dword [ebp - 0x550]
mov dword [ebp - 0x554], 0x208
mov dword [ebp - 0x54c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412a29
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x5a8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [ebp - 0x5a8]
call fcn.00412b88
lea ecx, [ebp - 0x5a8]
mov edi, eax
mov dword [ebp - 0x564], edx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push dword [ebp - 0x550]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0x564]
mov dword [eax + 0x48], edi
mov dword [eax + 0x4c], ecx
push dword [ebp - 0x55c]
xor eax, eax
cmp dword [esi + 0x1c], ebx
setne al
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
call fcn.00416081
ret