Function at 0x1017c6b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push str.LC_ALL
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1017c6d7
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x1017c721
push str.LC_CTYPE
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1017c6f8
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
jne 0x1017c721
push str.LANG
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1017ce97
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x1017ce97
push 0x102532f8
mov eax, dword [ebp - 4]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x1017c74b
push str.POSIX
mov ecx, dword [ebp - 4]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
jne 0x1017c755
mov eax, str.US_ASCII
jmp 0x1017ce99
push 0x2e
mov edx, dword [ebp - 4]
push edx
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x10], 0
jne 0x1017c781
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
push 0x10253310
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x10253314
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017c7af
mov eax, 0x10253318
jmp 0x1017ce99
mov dword [ebp - 0xc], 5
push 0x10253320
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push str.8859_
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x1017c809
mov dword [ebp - 0xc], 9
push 0x10253330
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x1025333c
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017c89e
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x30
jl 0x1017c89e
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
movsx eax, byte [edx]
cmp eax, 0x39
jg 0x1017c89e
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
push 0xc
push str.ISO_8859_
push 0x1026cd88
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edx, 1
imul eax, edx, 9
mov ecx, dword [ebp - 8]
mov dl, byte [ecx]
mov byte [eax + 0x1026cd88], dl
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
cmp edx, 0x30
jl 0x1017c894
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
cmp ecx, 0x39
jg 0x1017c894
mov edx, 1
imul eax, edx, 0xa
mov ecx, dword [ebp - 8]
mov dl, byte [ecx]
mov byte [eax + 0x1026cd88], dl
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, 0x1026cd88
jmp 0x1017ce99
push 0x10253354
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x1025335c
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017c8cc
mov eax, 0x10253364
jmp 0x1017ce99
push 0x1025336c
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x10253374
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017c8fa
mov eax, 0x1025337c
jmp 0x1017ce99
push 0x10253384
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x10253388
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017c928
mov eax, 0x1025338c
jmp 0x1017ce99
push 0x10253394
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push str.2312
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017c956
mov eax, 0x102533a4
jmp 0x1017ce99
push 0x102533ac
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push str.HKSCS
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017c984
mov eax, 0x102533bc
jmp 0x1017ce99
push 0x102533c8
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push str.BIG5
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017c9b2
mov eax, 0x102533d8
jmp 0x1017ce99
push 0x102533e0
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x102533e4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017c9e0
mov eax, 0x102533e8
jmp 0x1017ce99
push 0x102533ec
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push str.18030
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017ca0e
mov eax, str.GB18030
jmp 0x1017ce99
push 0x10253404
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push str.Shift_JIS
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x1017ca56
push 0x1025341c
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push str.SJIS
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017ca60
mov eax, 0x1025342c
jmp 0x1017ce99
push 0x10253438
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push str.euro
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017ca8e
mov eax, str.ISO_8859_15
jmp 0x1017ce99
push 0x10253454
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push str.zh_TW
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017cabc
mov eax, str.Big5
jmp 0x1017ce99
push 0x1025346c
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push str.zh_HK
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017caea
mov eax, str.Big5HKSCS
jmp 0x1017ce99
push 0x10253488
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x1025348c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017cb18
mov eax, str.GB2312
jmp 0x1017ce99
push 0x10253498
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x1025349c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017cb46
mov eax, str.Windows_31J
jmp 0x1017ce99
push 0x102534ac
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x102534b0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017cb74
mov eax, str.EUC_KR
jmp 0x1017ce99
push 0x102534bc
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x102534c0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017cba2
mov eax, str.KOI8_R
jmp 0x1017ce99
push 0x102534cc
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x102534d0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017cbd0
mov eax, str.KOI8_U
jmp 0x1017ce99
push 0x102534dc
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x102534e0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x1017ccb0
push 0x102534e4
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x102534e8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x1017ccb0
push 0x102534ec
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x102534f0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x1017ccb0
push 0x102534f4
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x102534f8
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x1017ccb0
push 0x102534fc
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x10253500
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x1017ccb0
push 0x10253504
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x10253508
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017ccba
mov eax, 0x1025350c
jmp 0x1017ce99
push 0x10253518
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x1025351c
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x1017cd02
push 0x10253520
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x10253524
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017cd0c
mov eax, str.ISO_8859_3
jmp 0x1017ce99
push 0x10253534
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x10253538
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017cd3a
mov eax, str.ISO_8859_7
jmp 0x1017ce99
push 0x10253548
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x1025354c
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017cd68
mov eax, str.ISO_8859_8
jmp 0x1017ce99
push 0x1025355c
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x10253560
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017cd96
mov eax, str.ISO_8859_9
jmp 0x1017ce99
push 0x10253570
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x10253574
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017cdc4
mov eax, str.TIS_620
jmp 0x1017ce99
push 0x10253580
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x10253584
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017cdf2
mov eax, str.ISO_8859_13
jmp 0x1017ce99
push 0x10253594
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x10253598
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017ce1d
mov eax, str.ISO_8859_14
jmp 0x1017ce99
push 0x102535a8
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x102535ac
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017ce48
mov eax, str.ISO_8859_2
jmp 0x1017ce99
push 0x102535bc
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x102535c0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x1017ce90
push 0x102535c4
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0x102535c8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1017ce97
mov eax, 0x102535cc
jmp 0x1017ce99
xor eax, eax
mov esp, ebp
pop ebp
ret