Function at 0x47afa0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b5e2
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x168], edi
lea eax, [edi + 0x34]
mov dword [ebp - 0x170], 1
push eax
mov dword [ebp - 0x174], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [edi + 0x1c], 0
je 0x47b283
cmp dword [edi + 0x30], 0
jne 0x47b283
push 0x70
call fcn.004daf9a
add esp, 4
mov dword [ebp - 0x16c], eax
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00479720
mov byte [ebp - 4], 0
mov ecx, dword [edi + 0x18]
mov dword [edi + 0x30], eax
mov dword [eax + 0x20], ecx
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [eax + 0x18], ecx
mov ecx, edi
mov dword [eax + 0x1c], edx
call fcn.0047c520
mov ecx, dword [edi + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IsWow64Process
push 0x531860
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], edx
mov dword [ebp - 0x164], 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x16c], eax
test eax, eax
je 0x47b09e
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x16c]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x164]
jmp 0x47b0a4
mov eax, dword [ebp - 0x164]
mov ecx, dword [edi + 0x30]
cdq
push str.RtlGetVersion
push str.ntdll.dll
mov dword [ecx + 0x50], eax
mov dword [ecx + 0x54], edx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x118
mov esi, eax
lea eax, [ebp - 0x15c]
push 0
push eax
call fcn.004dcc10
add esp, 0xc
mov dword [ebp - 0x160], 0x11c
test esi, esi
je 0x47b0f4
lea eax, [ebp - 0x160]
push eax
call esi
test eax, eax
je 0x47b148
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x160]
push eax
mov dword [ebp - 0x160], 0x11c
call esi
test eax, eax
jne 0x47b148
lea eax, [ebp - 0x160]
mov dword [ebp - 0x160], 0x114
push eax
call esi
test eax, eax
jne 0x47b148
mov eax, dword [edi + 0x30]
xor ecx, ecx
mov word [eax + 0x30], cx
mov eax, dword [edi + 0x30]
mov word [eax + 0x32], cx
mov eax, dword [edi + 0x30]
mov word [eax + 0x36], cx
mov eax, dword [edi + 0x30]
mov word [eax + 0x34], cx
jmp 0x47b17d
mov ecx, dword [edi + 0x30]
movzx eax, word [ebp - 0x15c]
mov word [ecx + 0x30], ax
mov ecx, dword [edi + 0x30]
movzx eax, word [ebp - 0x158]
mov word [ecx + 0x32], ax
mov ecx, dword [edi + 0x30]
movzx eax, word [ebp - 0x4c]
mov word [ecx + 0x36], ax
mov ecx, dword [edi + 0x30]
movzx eax, word [ebp - 0x154]
mov word [ecx + 0x34], ax
xorps xmm0, xmm0
mov dword [ebp - 0x178], 0
push 0x533354
push 0x531860
movups xmmword [ebp - 0x198], xmm0
movups xmmword [ebp - 0x188], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47b1be
lea ecx, [ebp - 0x198]
push ecx
call eax
jmp 0x47b1cb
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [edi + 0x30]
mov ax, word [ebp - 0x198]
mov word [ecx + 0x38], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, dword [edi + 0x30]
mov word [ecx + 0x3a], ax
mov ecx, edi
call fcn.0047c1b0
mov ecx, dword [edi + 0x30]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x44], edx
lea ecx, [ebp - 0x20]
movups xmmword [ebp - 0x44], xmm0
mov word [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
call fcn.0044bd40
test eax, eax
je 0x47b269
xor esi, esi
lea edi, [ebp - 0x44]
nop dword [eax]
movzx eax, byte [ebp + esi - 0x20]
push eax
push str._02x
push 0xffffffffffffffff
push 3
push edi
call fcn.0044aac0
inc esi
add esp, 0x14
add edi, 2
cmp esi, 0x10
jb 0x47b220
mov edi, dword [ebp - 0x168]
lea ecx, [ebp - 0x44]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47b250
sub ecx, edx
lea eax, [ebp - 0x44]
push ecx
mov ecx, dword [edi + 0x30]
push eax
add ecx, 0x58
call fcn.0044c030
mov ecx, dword [edi + 0x30]
cmp dword [ecx + 0x68], 0x20
je 0x47b283
test ecx, ecx
je 0x47b27c
push ecx
call fcn.0047b2c0
mov dword [edi + 0x30], 0
xor eax, eax
cmp dword [edi + 0x30], eax
setne al
mov dword [ebp - 0x168], eax
lea eax, [edi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret