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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100baf60
mov eax, dword fs:[0]
push eax
sub esp, 0x5a0
mov eax, dword [0x100e13e0]
xor eax, esp
mov dword [esp + 0x598], eax
push ebx
push esi
push edi
mov eax, dword [0x100e13e0]
xor eax, esp
push eax
lea eax, [esp + 0x5b0]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x90]
push eax
lea ecx, [esp + 0x28]
call fcn.10021768
xor ebx, ebx
mov dword [esp + 0x5b8], ebx
cmp dword [esi + 0x2c], ebx
je 0x100462c5
cmp dword [esi + 0x1c], ebx
jne 0x100460bb
push 0x38
call fcn.1006f137
pop ecx
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x5b8], 1
je 0x1004608b
push eax
call fcn.10045764
jmp 0x1004608d
xor eax, eax
mov byte [esp + 0x5b8], 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 0x100462c5
cmp dword [esi + 0x20], ebx
jne 0x100462c5
push 0x80
call fcn.1006f137
pop ecx
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x5b8], 2
je 0x100460f0
push eax
call fcn.100457b6
jmp 0x100460f2
xor eax, eax
mov byte [esp + 0x5b8], 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 0x118
mov dword [eax + 0x34], ecx
lea eax, [esp + 0x74]
push ebx
push eax
call fcn.10072040
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x70], 0x11c
call edi
cmp eax, ebx
jne 0x1004615f
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x70], 0x114
call edi
cmp eax, ebx
je 0x10046194
mov eax, dword [esi + 0x20]
mov cx, word [esp + 0x70]
mov word [eax + 0x38], cx
mov eax, dword [esi + 0x20]
mov cx, word [esp + 0x74]
mov word [eax + 0x3a], cx
mov eax, dword [esi + 0x20]
mov cx, word [esp + 0x180]
mov word [eax + 0x3e], cx
mov eax, dword [esi + 0x20]
mov cx, word [esp + 0x78]
mov word [eax + 0x3c], cx
jmp 0x100461b0
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 0x100cdc3c
xor eax, eax
mov dword [esp + 0x30], ebx
lea edi, [esp + 0x34]
push 0x100cdc50
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 0x100461e3
lea ecx, [esp + 0x2c]
push ecx
call eax
jmp 0x100461ee
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 0x20]
mov cx, word [esp + 0x2c]
mov word [eax + 0x40], cx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, dword [esi + 0x20]
mov word [ecx + 0x42], ax
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push 0x100cdc70
push reloc.OLEAUT32.dll_SysReAllocString
xor edi, edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100462b8
push 0x410
lea eax, [esp + 0x192]
push ebx
push eax
mov word [esp + 0x198], bx
call fcn.10072040
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x190]
push eax
lea eax, [esp + 0x18]
push eax
push ebx
push 0x100cdcbc
push dword [esp + 0x28]
mov dword [esp + 0x30], 0x208
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100462ae
lea eax, [esp + 0x18c]
push eax
lea ecx, [esp + 0x54]
call fcn.100016da
lea eax, [esp + 0x50]
push eax
call fcn.100463cd
lea ecx, [esp + 0x50]
mov edi, eax
mov dword [esp + 0x20], edx
call fcn.10001748
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x48], edi
mov dword [eax + 0x4c], ecx
xor eax, eax
cmp dword [esi + 0x1c], ebx
lea ecx, [esp + 0x24]
setne al
mov esi, eax
call fcn.10021792
mov eax, esi
mov ecx, dword [esp + 0x5b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x598]
xor ecx, esp
call fcn.1006f3c1
mov esp, ebp
pop ebp
ret