Function at 0x10091178
Capabilities:
Query environment variable

Disassembly:
mov al, byte [0x10179250]
sub esp, 0x1c
cmp al, 0xff
jne 0x1009119a
push str.CFStringDisableLocalizedNumberFormatting
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test eax, eax
pop ecx
setne al
mov byte [0x10179250], al
push esi
push edi
test al, al
jne 0x1009181f
push 0x10189ba0
call sym.CoreFoundation.dll___CFSpinLock
mov esi, dword [esp + 0x38]
pop ecx
push 0
pop edi
movsx eax, byte [esi + 0x1c]
sub eax, 1
je 0x100912f9
sub eax, 1
je 0x10091280
sub eax, 1
je 0x100911e3
sub eax, 1
je 0x100912f9
mov edi, dword [esp + 0x14]
jmp 0x10091342
mov eax, dword [0x10189bac]
test eax, eax
je 0x10091213
push dword [esp + 0x2c]
push eax
call sym.CoreFoundation.dll_CFNumberFormatterGetLocale
pop ecx
push eax
call sym.CoreFoundation.dll_CFEqual
pop ecx
pop ecx
test al, al
jne 0x10091275
mov eax, dword [0x10189bac]
test eax, eax
je 0x10091213
push eax
call sym.CoreFoundation.dll_CFRelease
pop ecx
xor eax, eax
inc eax
push eax
push dword [esp + 0x30]
push edi
call sym.CoreFoundation.dll_CFNumberFormatterCreate
push dword [sym.CoreFoundation.dll_kCFNumberFormatterGroupingSize]
mov dword [0x10189bac], eax
push eax
call sym.CoreFoundation.dll_CFNumberFormatterCopyProperty
push 0x10189bb0
push 3
pop edi
mov esi, eax
push edi
push esi
call sym.CoreFoundation.dll_CFNumberGetValue
push esi
call sym.CoreFoundation.dll_CFRelease
push dword [sym.CoreFoundation.dll_kCFNumberFormatterSecondaryGroupingSize]
push dword [0x10189bac]
call sym.CoreFoundation.dll_CFNumberFormatterCopyProperty
push 0x10189bb4
mov esi, eax
push edi
push esi
call sym.CoreFoundation.dll_CFNumberGetValue
push esi
call sym.CoreFoundation.dll_CFRelease
mov esi, dword [esp + 0x70]
add esp, 0x3c
mov edi, dword [0x10189bac]
jmp 0x10091342
mov eax, dword [0x10189ba8]
test eax, eax
je 0x100912b0
push dword [esp + 0x2c]
push eax
call sym.CoreFoundation.dll_CFNumberFormatterGetLocale
pop ecx
push eax
call sym.CoreFoundation.dll_CFEqual
pop ecx
pop ecx
test al, al
jne 0x100912f1
mov eax, dword [0x10189ba8]
test eax, eax
je 0x100912b0
push eax
call sym.CoreFoundation.dll_CFRelease
pop ecx
push 4
push dword [esp + 0x30]
push edi
call sym.CoreFoundation.dll_CFNumberFormatterCreate
push 0x1014a7dc
mov dword [0x10189ba8], eax
call sym.CoreFoundation.dll___CFStringMakeConstantString
push eax
push dword [0x10189ba8]
call sym.CoreFoundation.dll_CFNumberFormatterSetFormat
push dword [sym.CoreFoundation.dll_kCFBooleanTrue]
push dword [sym.CoreFoundation.dll_kCFNumberFormatterUseSignificantDigits]
push dword [0x10189ba8]
call sym.CoreFoundation.dll_CFNumberFormatterSetProperty
add esp, 0x24
mov edi, dword [0x10189ba8]
jmp 0x10091342
mov eax, dword [0x10189ba4]
test eax, eax
je 0x10091329
push dword [esp + 0x2c]
push eax
call sym.CoreFoundation.dll_CFNumberFormatterGetLocale
pop ecx
push eax
call sym.CoreFoundation.dll_CFEqual
pop ecx
pop ecx
test al, al
jne 0x10091352
mov eax, dword [0x10189ba4]
test eax, eax
je 0x10091329
push eax
call sym.CoreFoundation.dll_CFRelease
pop ecx
xor eax, eax
inc eax
push eax
push dword [esp + 0x30]
push edi
call sym.CoreFoundation.dll_CFNumberFormatterCreate
mov edi, eax
add esp, 0xc
mov dword [0x10189ba4], edi
cmp byte [esp + 0x40], 0
push 0x21
pop edx
je 0x1009135a
mov eax, dword [esp + 0x3c]
jmp 0x10091366
mov edi, dword [0x10189ba4]
jmp 0x10091342
xor ecx, ecx
cmp word [esi + 2], dx
push 6
pop eax
cmove eax, ecx
cmp byte [esi + 0x1c], 3
mov dword [esp + 0x20], eax
jne 0x100914de
push 1
pop ecx
test eax, eax
push 0
cmove eax, ecx
push 0
mov dword [esp + 0x28], eax
call sym.CoreFoundation.dll_CFStringCreateMutable
push 0x600
push 0x10144600
push eax
mov dword [esp + 0x30], eax
call sym.CoreFoundation.dll_CFStringAppendCString
add esp, 0x14
push 0
push dword [esp + 0x24]
push 0x1014a7e4
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push dword [esp + 0x28]
call sym.CoreFoundation.dll_CFStringPad
movsx eax, byte [esi + 0x18]
mov ecx, dword [esp + 0x40]
add eax, eax
movsd xmm0, qword [ecx + eax*8 + 8]
movsd qword [esp + 0x20], xmm0
movd xmm0, dword [esp + 0x30]
cvtdq2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movsd xmm0, qword [0x101405a8]
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movsd xmm1, qword [esp + 0x20]
xorps xmm3, xmm3
fstp qword [esp + 0x18]
movsd xmm2, qword [esp + 0x18]
add esp, 0x10
comisd xmm1, xmm3
jbe 0x10091423
comisd xmm1, xmm2
ja 0x10091440
movsd xmm0, qword [0x10146960]
comisd xmm0, xmm1
ja 0x10091440
comisd xmm3, xmm1
jbe 0x10091458
xorps xmm2, xmmword [0x10145490]
comisd xmm2, xmm1
ja 0x10091440
comisd xmm1, xmmword [0x1014a9c0]
jbe 0x10091458
push 0x600
push str.E00
push dword [esp + 0x24]
call sym.CoreFoundation.dll_CFStringAppendCString
add esp, 0xc
jmp 0x100914c8
mov eax, dword [0x10189bb0]
cmp dword [esp + 0x20], eax
jle 0x100914c8
test eax, eax
je 0x100914c8
push 0x1014a7f0
call sym.CoreFoundation.dll___CFStringMakeConstantString
push eax
mov eax, dword [esp + 0x28]
sub eax, dword [0x10189bb0]
push eax
push dword [esp + 0x28]
call sym.CoreFoundation.dll_CFStringInsert
mov ecx, dword [0x10189bb4]
add esp, 0x10
test ecx, ecx
je 0x100914c8
mov eax, dword [0x10189bb0]
add eax, ecx
cmp dword [esp + 0x20], eax
jle 0x100914c8
push 0x1014a7f0
call sym.CoreFoundation.dll___CFStringMakeConstantString
push eax
mov eax, dword [esp + 0x28]
sub eax, dword [0x10189bb4]
sub eax, dword [0x10189bb0]
push eax
push dword [esp + 0x28]
call sym.CoreFoundation.dll_CFStringInsert
add esp, 0x10
push dword [esp + 0x1c]
push edi
call sym.CoreFoundation.dll_CFNumberFormatterSetFormat
push dword [esp + 0x24]
call sym.CoreFoundation.dll_CFRelease
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 3
push 0
call sym.CoreFoundation.dll_CFNumberCreate
push eax
push dword [sym.CoreFoundation.dll_kCFNumberFormatterMaxFractionDigits]
mov dword [esp + 0x30], eax
push edi
call sym.CoreFoundation.dll_CFNumberFormatterSetProperty
add esp, 0x18
cmp word [esi + 2], 0x22
push dword [esp + 0x1c]
jne 0x1009151c
push dword [sym.CoreFoundation.dll_kCFNumberFormatterMinFractionDigits]
push edi
call sym.CoreFoundation.dll_CFNumberFormatterSetProperty
add esp, 0xc
jmp 0x10091548
call sym.CoreFoundation.dll_CFRelease
and dword [esp + 0x18], 0
lea eax, [esp + 0x18]
push eax
push 3
push 0
call sym.CoreFoundation.dll_CFNumberCreate
push eax
push dword [sym.CoreFoundation.dll_kCFNumberFormatterMinFractionDigits]
mov dword [esp + 0x34], eax
push edi
call sym.CoreFoundation.dll_CFNumberFormatterSetProperty
add esp, 0x1c
push dword [esp + 0x1c]
call sym.CoreFoundation.dll_CFRelease
pop ecx
mov cl, byte [esi + 0x14]
and ecx, 0xffffff01
cmp byte [esp + 0x40], 0
mov dword [esp + 0x1c], ecx
je 0x1009157a
push 0x21
pop eax
cmp word [esi + 2], ax
push 1
movzx ecx, cl
pop eax
cmove ecx, eax
mov dword [esp + 0x1c], ecx
test cl, cl
mov edx, 0x10139b98
mov eax, 0x1013dca4
cmovne eax, edx
push eax
call sym.CoreFoundation.dll___CFStringMakeConstantString
push eax
push dword [sym.CoreFoundation.dll_kCFNumberFormatterPaddingCharacter]
push edi
call sym.CoreFoundation.dll_CFNumberFormatterSetProperty
mov eax, dword [esp + 0x2c]
add esp, 0x10
test byte [esi + 0x14], 2
movzx eax, al
push 3
pop ecx
cmovne eax, ecx
cmp byte [esp + 0x40], 0
mov dword [esp + 0x18], eax
je 0x100915d1
push 0x21
pop eax
cmp word [esi + 2], ax
jne 0x100915d1
xor eax, eax
inc eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
jmp 0x100915d5
lea eax, [esp + 0x18]
push eax
push ecx
push 0
call sym.CoreFoundation.dll_CFNumberCreate
add esp, 0xc
mov dword [esp + 0x1c], eax
push eax
push dword [sym.CoreFoundation.dll_kCFNumberFormatterPaddingPosition]
push edi
call sym.CoreFoundation.dll_CFNumberFormatterSetProperty
push dword [esp + 0x28]
call sym.CoreFoundation.dll_CFRelease
push edi
call sym.CoreFoundation.dll_CFNumberFormatterGetFormat
mov ecx, eax
mov eax, dword [esi + 0x14]
push 0
push ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], eax
call sym.CoreFoundation.dll_CFStringGetCharacterAtIndex
add esp, 0x1c
test byte [esp + 0x14], 4
je 0x10091658
cmp ax, 0x2b
je 0x1009168c
push 0x101398f4
call sym.CoreFoundation.dll___CFStringMakeConstantString
push eax
push 0
push 0
call sym.CoreFoundation.dll_CFStringCreateMutableCopy
push dword [esp + 0x2c]
mov esi, eax
push esi
call sym.CoreFoundation.dll_CFStringAppend
push esi
push edi
call sym.CoreFoundation.dll_CFNumberFormatterSetFormat
push esi
call sym.CoreFoundation.dll_CFRelease
add esp, 0x24
jmp 0x10091688
cmp ax, 0x2b
jne 0x1009168c
mov esi, dword [esp + 0x1c]
push esi
call sym.CoreFoundation.dll_CFStringGetLength
dec eax
push eax
xor eax, eax
inc eax
push eax
push esi
push 0
call sym.CoreFoundation.dll_CFStringCreateWithSubstring
mov esi, eax
push esi
push edi
call sym.CoreFoundation.dll_CFNumberFormatterSetFormat
push esi
call sym.CoreFoundation.dll_CFRelease
add esp, 0x20
mov esi, dword [esp + 0x34]
cmp byte [esp + 0x40], 0
je 0x100916a0
push 0x21
pop eax
cmp word [esi + 2], ax
lea eax, [esp + 0x20]
je 0x100916a4
lea eax, [esp + 0x38]
push eax
push 3
pop eax
push eax
push 0
call sym.CoreFoundation.dll_CFNumberCreate
mov esi, eax
push esi
push dword [sym.CoreFoundation.dll_kCFNumberFormatterFormatWidth]
push edi
call sym.CoreFoundation.dll_CFNumberFormatterSetProperty
push esi
call sym.CoreFoundation.dll_CFRelease
mov eax, dword [esp + 0x50]
add esp, 0x1c
cmp byte [eax + 0x1c], 2
jne 0x1009170f
inc dword [esp + 0x20]
lea eax, [esp + 0x20]
push eax
push 3
pop eax
push eax
push 0
call sym.CoreFoundation.dll_CFNumberCreate
mov esi, eax
push esi
push dword [sym.CoreFoundation.dll_kCFNumberFormatterMinSignificantDigits]
push edi
call sym.CoreFoundation.dll_CFNumberFormatterSetProperty
push esi
push dword [sym.CoreFoundation.dll_kCFNumberFormatterMaxSignificantDigits]
push edi
call sym.CoreFoundation.dll_CFNumberFormatterSetProperty
push esi
call sym.CoreFoundation.dll_CFRelease
mov eax, dword [esp + 0x5c]
add esp, 0x28
movsx ecx, word [eax + 2]
xor esi, esi
sub ecx, 0x21
je 0x10091734
sub ecx, 1
jne 0x10091754
movsx eax, byte [eax + 0x18]
mov ecx, dword [esp + 0x30]
shl eax, 4
add ecx, 8
add eax, ecx
push eax
push 0xd
jmp 0x10091747
movsx eax, byte [eax + 0x18]
mov ecx, dword [esp + 0x30]
shl eax, 4
add ecx, 8
add eax, ecx
push eax
push 4
push edi
push 0
call sym.CoreFoundation.dll_CFNumberFormatterCreateStringWithValue
mov esi, eax
add esp, 0x10
push 0x10189ba0
call sym.CoreFoundation.dll___CFSpinUnlock
pop ecx
test esi, esi
je 0x1009181f
mov eax, dword [esp + 0x34]
push 0x21
pop ecx
cmp word [eax + 2], cx
jne 0x10091807
cmp byte [esp + 0x40], 0
je 0x10091807
push esi
call sym.CoreFoundation.dll_CFStringGetLength
pop ecx
cmp eax, dword [esp + 0x38]
jge 0x10091807
push 3
pop eax
cmp dword [esp + 0x18], eax
jne 0x100917c5
push esi
push 0
push 0
call sym.CoreFoundation.dll_CFStringCreateMutableCopy
add esp, 0xc
mov edi, eax
push 0
push dword [esp + 0x3c]
push 0x1013dca4
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push edi
call sym.CoreFoundation.dll_CFStringPad
add esp, 0x10
jmp 0x100917fe
push 0
push 0
call sym.CoreFoundation.dll_CFStringCreateMutable
pop ecx
pop ecx
push 0
push esi
mov edi, eax
call sym.CoreFoundation.dll_CFStringGetLength
pop ecx
mov ecx, dword [esp + 0x3c]
sub ecx, eax
push ecx
push 0x1013dca4
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push edi
call sym.CoreFoundation.dll_CFStringPad
push esi
push edi
call sym.CoreFoundation.dll_CFStringAppend
add esp, 0x18
push esi
call sym.CoreFoundation.dll_CFRelease
pop ecx
mov esi, edi
push esi
push dword [esp + 0x2c]
call sym.CoreFoundation.dll_CFStringAppend
push esi
call sym.CoreFoundation.dll_CFRelease
xor eax, eax
add esp, 0xc
inc eax
jmp 0x10091821
xor al, al
pop edi
pop esi
add esp, 0x1c
ret