Function at 0x10091186
Capabilities:
Query environment variable

Disassembly:
mov al, byte [0x10179250]
sub esp, 0x1c
cmp al, 0xff
jne 0x100911a8
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 0x1009182d
push 0x10189bb0
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 0x10091307
sub eax, 1
je 0x1009128e
sub eax, 1
je 0x100911f1
sub eax, 1
je 0x10091307
mov edi, dword [esp + 0x14]
jmp 0x10091350
mov eax, dword [0x10189bbc]
test eax, eax
je 0x10091221
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 0x10091283
mov eax, dword [0x10189bbc]
test eax, eax
je 0x10091221
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 [0x10189bbc], eax
push eax
call sym.CoreFoundation.dll_CFNumberFormatterCopyProperty
push 0x10189bc0
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 [0x10189bbc]
call sym.CoreFoundation.dll_CFNumberFormatterCopyProperty
push 0x10189bc4
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 [0x10189bbc]
jmp 0x10091350
mov eax, dword [0x10189bb8]
test eax, eax
je 0x100912be
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 0x100912ff
mov eax, dword [0x10189bb8]
test eax, eax
je 0x100912be
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 [0x10189bb8], eax
call sym.CoreFoundation.dll___CFStringMakeConstantString
push eax
push dword [0x10189bb8]
call sym.CoreFoundation.dll_CFNumberFormatterSetFormat
push dword [sym.CoreFoundation.dll_kCFBooleanTrue]
push dword [sym.CoreFoundation.dll_kCFNumberFormatterUseSignificantDigits]
push dword [0x10189bb8]
call sym.CoreFoundation.dll_CFNumberFormatterSetProperty
add esp, 0x24
mov edi, dword [0x10189bb8]
jmp 0x10091350
mov eax, dword [0x10189bb4]
test eax, eax
je 0x10091337
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 0x10091360
mov eax, dword [0x10189bb4]
test eax, eax
je 0x10091337
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 [0x10189bb4], edi
cmp byte [esp + 0x40], 0
push 0x21
pop edx
je 0x10091368
mov eax, dword [esp + 0x3c]
jmp 0x10091374
mov edi, dword [0x10189bb4]
jmp 0x10091350
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 0x100914ec
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 0x10091431
comisd xmm1, xmm2
ja 0x1009144e
movsd xmm0, qword [0x10146960]
comisd xmm0, xmm1
ja 0x1009144e
comisd xmm3, xmm1
jbe 0x10091466
xorps xmm2, xmmword [0x10145490]
comisd xmm2, xmm1
ja 0x1009144e
comisd xmm1, xmmword [0x1014a9c0]
jbe 0x10091466
push 0x600
push str.E00
push dword [esp + 0x24]
call sym.CoreFoundation.dll_CFStringAppendCString
add esp, 0xc
jmp 0x100914d6
mov eax, dword [0x10189bc0]
cmp dword [esp + 0x20], eax
jle 0x100914d6
test eax, eax
je 0x100914d6
push 0x1014a7f0
call sym.CoreFoundation.dll___CFStringMakeConstantString
push eax
mov eax, dword [esp + 0x28]
sub eax, dword [0x10189bc0]
push eax
push dword [esp + 0x28]
call sym.CoreFoundation.dll_CFStringInsert
mov ecx, dword [0x10189bc4]
add esp, 0x10
test ecx, ecx
je 0x100914d6
mov eax, dword [0x10189bc0]
add eax, ecx
cmp dword [esp + 0x20], eax
jle 0x100914d6
push 0x1014a7f0
call sym.CoreFoundation.dll___CFStringMakeConstantString
push eax
mov eax, dword [esp + 0x28]
sub eax, dword [0x10189bc4]
sub eax, dword [0x10189bc0]
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 0x1009152a
push dword [sym.CoreFoundation.dll_kCFNumberFormatterMinFractionDigits]
push edi
call sym.CoreFoundation.dll_CFNumberFormatterSetProperty
add esp, 0xc
jmp 0x10091556
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 0x10091588
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 0x100915df
push 0x21
pop eax
cmp word [esi + 2], ax
jne 0x100915df
xor eax, eax
inc eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
jmp 0x100915e3
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 0x10091666
cmp ax, 0x2b
je 0x1009169a
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 0x10091696
cmp ax, 0x2b
jne 0x1009169a
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 0x100916ae
push 0x21
pop eax
cmp word [esi + 2], ax
lea eax, [esp + 0x20]
je 0x100916b2
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 0x1009171d
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 0x10091742
sub ecx, 1
jne 0x10091762
movsx eax, byte [eax + 0x18]
mov ecx, dword [esp + 0x30]
shl eax, 4
add ecx, 8
add eax, ecx
push eax
push 0xd
jmp 0x10091755
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 0x10189bb0
call sym.CoreFoundation.dll___CFSpinUnlock
pop ecx
test esi, esi
je 0x1009182d
mov eax, dword [esp + 0x34]
push 0x21
pop ecx
cmp word [eax + 2], cx
jne 0x10091815
cmp byte [esp + 0x40], 0
je 0x10091815
push esi
call sym.CoreFoundation.dll_CFStringGetLength
pop ecx
cmp eax, dword [esp + 0x38]
jge 0x10091815
push 3
pop eax
cmp dword [esp + 0x18], eax
jne 0x100917d3
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 0x1009180c
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 0x1009182f
xor al, al
pop edi
pop esi
add esp, 0x1c
ret