Function at 0x10047140
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x100786f8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008d0a0]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [esp + 0x5c]
add ecx, 0x14
xor esi, esi
cmp ecx, esi
je 0x10047192
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 4]
push 0xffffffffffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], esi
call eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x54], esi
or ebp, 0xffffffff
cmp edi, esi
je 0x10047272
call fcn.100470b0
test eax, eax
je 0x10047270
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x3c]
lea eax, [edx - 1]
test eax, eax
jge 0x100471fa
fild dword [esp + 0x3c]
push 0x5e
push str.D:WORK2005SourceJMX_LibraryBSLib_thread_threadmanager.cpp
sub esp, 0x10
fsub qword [0x100803d8]
fstp qword [esp + 8]
fldz
fstp qword [esp]
push str.CLAMP_____min__.3f__exceeded_max__.3f__value___File:__s__Line:__d
push 0x2000001
call fcn.100215b0
mov edx, dword [esp + 0x5c]
add esp, 0x20
mov dword [edi + 4], esi
mov eax, dword [edi + 4]
cmp eax, esi
jge 0x10047205
xor eax, eax
jmp 0x1004720e
lea ecx, [edx - 1]
cmp eax, ecx
jl 0x1004720e
mov eax, ecx
lea ecx, [edx - 1]
test ecx, ecx
mov dword [edi + 4], eax
jge 0x1004724e
fild dword [esp + 0x3c]
push 0x5f
push str.D:WORK2005SourceJMX_LibraryBSLib_thread_threadmanager.cpp
sub esp, 0x10
fsub qword [0x100803d8]
fstp qword [esp + 8]
fldz
fstp qword [esp]
push str.CLAMP_____min__.3f__exceeded_max__.3f__value___File:__s__Line:__d
push 0x2000001
call fcn.100215b0
mov edx, dword [esp + 0x5c]
add esp, 0x20
mov dword [edi + 8], esi
mov eax, dword [edi + 8]
cmp eax, esi
jge 0x1004725f
mov ebp, dword [edi + 4]
xor eax, eax
mov dword [edi + 8], eax
jmp 0x10047272
lea ecx, [edx - 1]
cmp eax, ecx
jl 0x10047268
mov eax, ecx
mov ebp, dword [edi + 4]
mov dword [edi + 8], eax
jmp 0x10047272
xor edi, edi
cmp dword [esp + 0x60], esi
mov dword [esp + 0x18], esi
jle 0x10047327
mov edx, dword [esp + 0x64]
mov dword [esp + 0x14], edx
jmp 0x10047290
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
neg eax
push ecx
mov ecx, dword [esp + 0x60]
sbb eax, eax
and eax, dword [esp + 0x18]
push edx
push eax
call fcn.10047390
mov ebx, eax
cmp ebx, esi
je 0x10047366
cmp edi, esi
je 0x1004730b
mov esi, dword [edi + 8]
sub esi, dword [edi + 4]
mov eax, ebp
add esi, 1
cmp dword [edi], 0
jne 0x100472e6
test ebp, ebp
jge 0x100472d8
xor eax, eax
mov esi, eax
jmp 0x100472f3
cmp ebp, 0x20
jl 0x100472e2
mov eax, 0x1f
mov esi, eax
jmp 0x100472f3
call fcn.1004c172
cdq
idiv esi
mov esi, dword [edi + 4]
add esi, edx
test esi, esi
jl 0x1004730b
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x50]
test eax, eax
je 0x1004730b
mov ecx, dword [ebx + 0x14]
push esi
push ecx
call eax
mov ebp, esi
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], 4
add eax, 1
xor esi, esi
cmp eax, dword [esp + 0x60]
mov dword [esp + 0x18], eax
jl 0x10047290
mov dword [esp + 0x54], 0xffffffff
cmp dword [esp + 0x24], esi
je 0x1004734b
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x24], eax
mov eax, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x14
mov dword [esp + 0x54], 0xffffffff
cmp dword [esp + 0x24], esi
je 0x1004738a
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x24], eax
xor eax, eax
jmp 0x10047350