Function at 0x10057980
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x100f34b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
mov al, byte [esp + 3]
push ebx
push ebp
push esi
push edi
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
mov byte [esp + 0x20], al
call fcn.10002043
fld dword [esp + 0xb8]
mov ebx, 1
fst qword [esp + 0x3c]
fstp qword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [esp + 0xac], ebx
sar eax, 0x14
and eax, 0x7ff
cmp eax, 0x7ff
je 0x10057e4b
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x18]
push ecx
push edx
push 6
push esi
push ebp
call fcn.100dff8d
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.100022b2
mov eax, dword [esp + 0x18]
cmp eax, 0xfffffffd
jle 0x10057dde
cmp eax, 8
jg 0x10057dde
test eax, eax
jg 0x10057afc
neg eax
mov esi, eax
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], al
call fcn.10002043
push 0x30
push esi
lea ecx, [esp + 0x34]
call fcn.100095b0
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x50]
push ecx
push 0x1010d064
push edx
mov byte [esp + 0xb8], 2
call fcn.10003578
lea ecx, [esp + 0x28]
lea edx, [esp + 0x48]
push ecx
mov bl, 3
push eax
push edx
mov byte [esp + 0xc4], bl
call fcn.10004650
add esp, 0x18
mov ecx, dword [0x100f7360]
mov byte [esp + 0xac], 4
push ecx
push 0
push eax
lea ecx, [esp + 0x28]
call fcn.10001ec7
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], bl
call fcn.10002043
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0xb0], 2
call fcn.10002043
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0xb0], 1
call fcn.10002043
mov dword [esp + 0x18], 1
jmp 0x10057c8e
cmp eax, 6
jge 0x10057bd5
mov edx, dword [0x100f7360]
lea ecx, [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x68]
push eax
call fcn.10001bf1
mov esi, eax
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push ecx
push 0
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0xb8], 5
call fcn.10001bf1
push 0x10108ec0
push eax
lea eax, [esp + 0x34]
mov byte [esp + 0xb4], 6
push eax
call fcn.10004520
push esi
lea ecx, [esp + 0x60]
mov bl, 7
push eax
push ecx
mov byte [esp + 0xc4], bl
call fcn.10004650
add esp, 0x18
mov edx, dword [0x100f7360]
lea ecx, [esp + 0x1c]
push edx
push 0
push eax
mov byte [esp + 0xb8], 8
call fcn.10001ec7
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0xb0], bl
call fcn.10002043
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0xb0], 6
call fcn.10002043
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 5
call fcn.10002043
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0xb0], 1
call fcn.10002043
jmp 0x10057c8e
lea esi, [eax - 6]
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], al
call fcn.10002043
push 0x30
push esi
lea ecx, [esp + 0x34]
call fcn.100095b0
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x54]
push edx
push eax
mov byte [esp + 0xb8], 9
call fcn.10004650
push 0x1010d060
lea ecx, [esp + 0x70]
mov bl, 0xa
push eax
push ecx
mov byte [esp + 0xc4], bl
call fcn.10004520
add esp, 0x18
mov edx, dword [0x100f7360]
lea ecx, [esp + 0x1c]
push edx
push 0
push eax
mov byte [esp + 0xb8], 0xb
call fcn.10001ec7
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0xb0], bl
call fcn.10002043
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0xb0], 9
call fcn.10002043
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0xb0], 1
call fcn.10002043
mov eax, dword [esp + 0x18]
lea ecx, [eax + eax - 6]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
lea edi, [edx + 1]
lea esi, [eax - 1]
cmp esi, edi
jle 0x10057ccf
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], esi
jb 0x10057cc0
test ecx, ecx
je 0x10057cc0
lea ecx, [esp + 0x1c]
call fcn.10002017
mov ecx, dword [esp + 0x20]
lea eax, [ecx + esi]
jmp 0x10057cc5
mov eax, 0x100f7364
cmp byte [eax], 0x30
jne 0x10057ccf
dec esi
cmp esi, edi
jg 0x10057ca4
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x30], cl
lea ecx, [esp + 0x30]
inc esi
call fcn.10002043
push esi
lea edx, [esp + 0x20]
push 0
push edx
lea ecx, [esp + 0x38]
call fcn.10001ec7
mov eax, dword [0x100f7360]
lea ecx, [esp + 0x2c]
push eax
push 0
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0xb8], 0xc
call fcn.10001ec7
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0xb0], 1
call fcn.10002043
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x10057d58
lea edx, [esp + 0x1c]
lea eax, [esp + 0x60]
push edx
push 0x1010d05c
push eax
call fcn.10003578
add esp, 0xc
mov edi, eax
mov dword [esp + 0x14], 2
mov byte [esp + 0xac], 0xd
jmp 0x10057d5c
lea edi, [esp + 0x1c]
mov esi, dword [esp + 0xb4]
mov cl, byte [edi]
push 0
mov byte [esi], cl
mov ecx, esi
call fcn.10002043
mov edx, dword [0x100f7360]
mov ecx, esi
push edx
push 0
push edi
call fcn.10001ec7
mov dword [esp + 0xac], 1
mov eax, dword [esp + 0x14]
or al, 1
test al, 2
mov dword [esp + 0x14], eax
je 0x10057dae
mov ecx, eax
push 1
and ecx, 0xfffffffd
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x64]
call fcn.10002043
mov byte [esp + 0xac], 0
push 1
lea ecx, [esp + 0x20]
call fcn.10002043
mov eax, esi
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa0
ret 8
lea eax, [esp + 0x70]
push eax
push 6
push esi
push ebp
call fcn.100dfef3
lea edi, [esp + 0x80]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x24]
call fcn.100022b2
push 0
mov esi, dword [esp + 0xb8]
mov dl, byte [esp + 0x20]
mov ecx, esi
mov byte [esi], dl
call fcn.10002043
mov eax, dword [0x100f7360]
lea ecx, [esp + 0x1c]
push eax
push 0
push ecx
mov ecx, esi
call fcn.10001ec7
mov dword [esp + 0x14], ebx
mov byte [esp + 0xac], 0
push ebx
jmp 0x10057db8
fld dword [esp + 0xb8]
fstp qword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov eax, ecx
sar eax, 0x14
and eax, 0x7ff
cmp eax, 0x7ff
jne 0x10057ec7
mov edx, dword [esp + 0x3c]
and ecx, 0xfffff
or edx, ecx
neg edx
sbb edx, edx
neg edx
mov dword [esp + 0x3c], edx
je 0x10057ec7
mov esi, dword [esp + 0xb4]
mov al, byte [esp + 0x13]
push 0
mov ecx, esi
mov byte [esi], al
call fcn.10002043
mov edi, 0x1010d058
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x1010d058
mov ecx, esi
call fcn.100022b2
mov dword [esp + 0x14], ebx
mov byte [esp + 0xac], 0
push ebx
jmp 0x10057db8
fld dword [esp + 0xb8]
fcomp qword [0x100f74c0]
fnstsw ax
test ah, 0x41
jne 0x10057f1f
mov esi, dword [esp + 0xb4]
mov cl, byte [esp + 0x13]
push 0
mov byte [esi], cl
mov ecx, esi
call fcn.10002043
mov edi, str.Infinity
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Infinity
mov ecx, esi
call fcn.100022b2
mov dword [esp + 0x14], ebx
mov byte [esp + 0xac], 0
push ebx
jmp 0x10057db8
fld dword [esp + 0xb8]
fcomp qword [0x100f74c0]
fnstsw ax
test ah, 1
je 0x10057fab
mov ebp, dword [esp + 0xb4]
mov dl, byte [esp + 0x13]
push 0
mov ecx, ebp
mov byte [ebp], dl
call fcn.10002043
mov edi, str._Infinity
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.1000234e
test al, al
je 0x10057f89
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
mov esi, str._Infinity
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.100044f0
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 1
mov byte [esp + 0xb0], 0
call fcn.10002043
mov eax, ebp
jmp 0x10057dc3
jmp 0x100dfd3b
push 0xa
call fcn.100e38ae
push 0x16
call fcn.100e250e
pop ecx
pop ecx
push 3
call fcn.100e06d3
int3