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

Disassembly:
mov eax, 0x1004b8c1
call fcn.100464e0
sub esp, 0x584
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x28], 1
lea eax, [esi + 0x90]
push eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.100328d5
test eax, eax
je 0x1003242c
cmp dword [esi + 0x1c], ebx
jne 0x1003242c
push 0x28
call sub.MFC42u.DLL_operatornew
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x10032400
mov ecx, eax
call fcn.1003266c
jmp 0x10032402
xor eax, eax
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], eax
mov dword [eax + 0x18], ecx
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
mov byte [ebp - 4], bl
mov dword [eax + 0x10], ecx
mov ecx, dword [esi + 0xc]
mov dword [eax + 0x14], ecx
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x20], ecx
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x24], ecx
mov ecx, esi
call fcn.100328d5
test eax, eax
je 0x10032649
cmp dword [esi + 0x20], ebx
jne 0x10032649
push 0x60
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x18], ecx
cmp ecx, ebx
mov byte [ebp - 4], 2
je 0x10032460
call fcn.100326de
jmp 0x10032462
xor eax, eax
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [eax + 0x18], ecx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 8]
push edi
mov dword [eax + 0x10], ecx
mov ecx, dword [esi + 0xc]
push 0x46
lea edi, [ebp - 0x178]
mov dword [eax + 0x14], ecx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 4], bl
mov dword [eax + 0x20], ecx
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x24], ecx
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x17c]
push eax
mov dword [ebp - 0x17c], 0x11c
call edi
cmp eax, ebx
jne 0x100324ce
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x17c], 0x114
push eax
call edi
cmp eax, ebx
je 0x10032505
mov eax, dword [esi + 0x20]
mov cx, word [ebp - 0x178]
mov word [eax + 0x28], cx
mov eax, dword [esi + 0x20]
mov cx, word [ebp - 0x174]
mov word [eax + 0x2a], cx
mov eax, dword [esi + 0x20]
mov cx, word [ebp - 0x68]
mov word [eax + 0x2e], cx
mov eax, dword [esi + 0x20]
mov cx, word [ebp - 0x170]
mov word [eax + 0x2c], cx
jmp 0x10032521
mov eax, dword [esi + 0x20]
mov word [eax + 0x28], bx
mov eax, dword [esi + 0x20]
mov word [eax + 0x2a], bx
mov eax, dword [esi + 0x20]
mov word [eax + 0x2e], bx
mov eax, dword [esi + 0x20]
mov word [eax + 0x2c], bx
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x5c]
mov dword [ebp - 0x60], ebx
push str.GetNativeSystemInfo
rep stosd dword es:[edi], eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x10032551
lea ecx, [ebp - 0x60]
push ecx
call eax
jmp 0x1003255b
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 0x20]
mov cx, word [ebp - 0x60]
mov word [eax + 0x30], cx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov word [ecx + 0x32], ax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftInternet_Explorer
push SysStringLen
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10032639
mov ecx, 0x104
lea edi, [ebp - 0x58e]
mov word [ebp - 0x590], bx
mov dword [ebp - 0x24], 0x208
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x590]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.Version
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10032630
mov al, byte [ebp - 0x11]
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
lea eax, [ebp - 0x590]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x590]
push eax
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
mov byte [ebp - 4], 3
call fcn.10032ad6
push 1
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0x20]
pop edi
mov dword [eax + 0x38], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x3c], ecx
push dword [ebp - 0x2c]
xor eax, eax
cmp dword [esi + 0x1c], ebx
setne al
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret