Function at 0x49a890
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x4cfaf8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f5160]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x64]
add esi, 0x14
xor edi, edi
cmp esi, edi
mov dword [esp + 0x1c], esi
jne 0x49a8cf
call fcn.00475a10
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 4]
push 0xffffffffffffffff
mov ecx, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], edi
call eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x5c], edi
or ebp, 0xffffffff
cmp ebx, edi
je 0x49a9cd
call fcn.0049a800
test eax, eax
je 0x49a9cb
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x44]
lea eax, [edx - 1]
test eax, eax
jge 0x49a955
fild dword [esp + 0x44]
push 0x5c
push str.D:WORK2005JMX_LibraryBSLib_thread_threadmanager.cpp
sub esp, 0x10
fsub qword [0x4dded8]
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.00481ce0
mov edx, dword [esp + 0x64]
add esp, 0x20
mov dword [ebx + 4], edi
mov eax, dword [ebx + 4]
cmp eax, edi
jge 0x49a960
xor eax, eax
jmp 0x49a969
lea ecx, [edx - 1]
cmp eax, ecx
jl 0x49a969
mov eax, ecx
lea ecx, [edx - 1]
test ecx, ecx
mov dword [ebx + 4], eax
jge 0x49a9a9
fild dword [esp + 0x44]
push 0x5d
push str.D:WORK2005JMX_LibraryBSLib_thread_threadmanager.cpp
sub esp, 0x10
fsub qword [0x4dded8]
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.00481ce0
mov edx, dword [esp + 0x64]
add esp, 0x20
mov dword [ebx + 8], edi
mov eax, dword [ebx + 8]
cmp eax, edi
jge 0x49a9ba
mov ebp, dword [ebx + 4]
xor eax, eax
mov dword [ebx + 8], eax
jmp 0x49a9cd
lea ecx, [edx - 1]
cmp eax, ecx
jl 0x49a9c3
mov eax, ecx
mov ebp, dword [ebx + 4]
mov dword [ebx + 8], eax
jmp 0x49a9cd
xor ebx, ebx
cmp dword [esp + 0x68], edi
mov dword [esp + 0x20], edi
jle 0x49aa7e
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0x64]
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
push ecx
push edx
push eax
call fcn.0049aaf0
mov edi, eax
test edi, edi
je 0x49aabb
test ebx, ebx
je 0x49aa62
mov esi, dword [ebx + 8]
sub esi, dword [ebx + 4]
mov eax, ebp
add esi, 1
cmp dword [ebx], 0
jne 0x49aa39
test ebp, ebp
jge 0x49aa2b
xor eax, eax
mov esi, eax
jmp 0x49aa46
cmp ebp, 0x20
jl 0x49aa35
mov eax, 0x1f
mov esi, eax
jmp 0x49aa46
call fcn.0049e2f2
cdq
idiv esi
mov esi, dword [ebx + 4]
add esi, edx
test esi, esi
jl 0x49aa5e
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x50]
test eax, eax
je 0x49aa5e
mov ecx, dword [edi + 0x14]
push esi
push ecx
call eax
mov ebp, esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add dword [esp + 0x18], 4
add eax, 1
cmp eax, dword [esp + 0x68]
mov dword [esp + 0x20], eax
jl 0x49a9e3
xor edi, edi
mov dword [esp + 0x5c], 0xffffffff
cmp dword [esp + 0x2c], edi
je 0x49aaa0
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x2c], eax
mov eax, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x14
mov dword [esp + 0x5c], 0xffffffff
cmp dword [esp + 0x2c], 0
je 0x49aade
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x2c], eax
xor eax, eax
jmp 0x49aaa5