Function at 0x40c9e0
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x517f39
mov eax, dword fs:[0]
push eax
sub esp, 0x33c
mov eax, dword [0x577690]
xor eax, esp
mov dword [esp + 0x338], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x577690]
xor eax, esp
push eax
lea eax, [esp + 0x350]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov ebp, 0xf
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
mov dword [esp + 0x3c], esi
mov byte [esi + 4], bl
push 0x78
lea eax, [esp + 0xd4]
mov dword [esp + 0x35c], ebx
push ebx
push eax
mov dword [esp + 0x44], 1
mov dword [esp + 0xd8], ebx
call fcn.004fc930
add esp, 0xc
lea ecx, [esp + 0xcc]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileA]
neg eax
sbb eax, eax
inc eax
cmp eax, ebx
je 0x40ca83
push eax
push str.GetCurrentHwProfile___failed._Error_code:__d_n
call fcn.004f9881
add esp, 8
push 0x7c
lea edx, [esp + 0xd0]
push edx
mov eax, esi
call fcn.004124a0
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [esp + 0x36]
movzx edx, word [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov eax, 0x6f
push eax
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x38]
push eax
push ecx
lea edx, [esp + 0x174]
push str._d__d__d__d__d__d__d__d__d__u
push edx
call fcn.004fa0f8
lea eax, [esp + 0x17c]
add esp, 0x30
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40cb32
sub eax, edi
push eax
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0xb8]
call fcn.00403d20
push ebx
lea ecx, [esp + 0xb4]
push ecx
or eax, 0xffffffff
mov dword [esp + 0x360], 1
call fcn.004051b0
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
lea ecx, [esp + 0x5c]
mov byte [esp + 0x358], 2
call fcn.0040bc50
push ebx
lea edx, [esp + 0x60]
push edx
or eax, 0xffffffff
call fcn.004051b0
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
lea ecx, [esp + 0x40]
mov byte [esp + 0x358], 3
call fcn.0040be20
push ebx
lea eax, [esp + 0x44]
push eax
or eax, 0xffffffff
call fcn.004051b0
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
mov dword [esp + 0xac], ebp
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x7c]
mov byte [esp + 0x35c], 5
call fcn.0040c7b0
add esp, 4
push ebx
lea edx, [esp + 0x7c]
push edx
or eax, 0xffffffff
call fcn.004051b0
push ebx
lea eax, [esp + 0x98]
push eax
or eax, 0xffffffff
call fcn.004051b0
xor edi, edi
cmp dword [esi + 0x14], ebx
jbe 0x40cc3b
cmp edi, dword [esi + 0x14]
jbe 0x40cc35
call fcn.004f9871
inc edi
cmp edi, dword [esi + 0x14]
jb 0x40cc35
mov edi, 0x10
cmp dword [esp + 0xac], edi
jb 0x40cc59
mov ecx, dword [esp + 0x98]
push ecx
call fcn.004f9a4f
add esp, 4
mov dword [esp + 0xac], ebp
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
cmp dword [esp + 0x90], edi
jb 0x40cc84
mov edx, dword [esp + 0x7c]
push edx
call fcn.004f9a4f
add esp, 4
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
cmp dword [esp + 0x58], edi
jb 0x40cca9
mov eax, dword [esp + 0x44]
push eax
call fcn.004f9a4f
add esp, 4
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
cmp dword [esp + 0x74], edi
jb 0x40ccc8
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004f9a4f
add esp, 4
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
cmp dword [esp + 0xc8], edi
jb 0x40cced
mov edx, dword [esp + 0xb4]
push edx
call fcn.004f9a4f
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x350]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x338]
xor ecx, esp
call fcn.004f8e7f
add esp, 0x348
ret