Function at 0x61cc4060
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov r14, r8
mov r8d, dword [rcx + 8]
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x28], r9d
test r8d, r8d
jle 0x61cc4402
mov rax, qword [rbp + 0x10]
mov rsi, qword [rax + 0x10]
test rsi, rsi
je 0x61cc4340
cmp qword [rsi + 0x60], 0
mov r13d, dword [rsi + 0x28]
je 0x61cc4360
mov rcx, r14
call sub.msvcrt.dll_strlen
mov rcx, r14
mov rdi, rax
mov dword [rbp - 0x68], eax
call sym.libintl_8.dll_libintl_hash_string
mov ecx, dword [rsi + 0x58]
xor edx, edx
mov r15d, eax
mov r10d, dword [rsi + 0x68]
and edi, 0xffffffff
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], rdi
div ecx
lea r8d, [rcx - 2]
mov eax, r15d
mov r12d, ecx
mov ebx, edx
xor edx, edx
div r8d
mov r8, qword [rsi + 0x60]
lea r15d, [rdx + 1]
mov r11d, r15d
sub r12d, r15d
mov r14d, r15d
sub r11d, ecx
mov r15d, r10d
jmp 0x61cc417d
mov ecx, dword [rsi + 0x18]
mov r10, qword [rsi + 0x30]
mov edx, edi
test ecx, ecx
mov eax, dword [r10 + rdx*8]
je 0x61cc4123
bswap eax
cmp eax, dword [rbp - 0x68]
jb 0x61cc416d
test ecx, ecx
mov rax, qword [rsi]
je 0x61cc4320
mov edx, dword [r10 + rdx*8 + 4]
bswap edx
mov edx, edx
mov rcx, qword [rbp - 0x78]
add rdx, rax
mov qword [rbp - 0xa0], r8
mov dword [rbp - 0xa8], r11d
call sub.msvcrt.dll_strcmp
test eax, eax
mov r8, qword [rbp - 0xa0]
mov r11d, dword [rbp - 0xa8]
sete al
test al, al
jne 0x61cc41e6
lea eax, [rbx + r11]
lea edx, [rbx + r14]
cmp ebx, r12d
mov ebx, eax
cmovb ebx, edx
mov eax, ebx
test r15d, r15d
mov edi, dword [r8 + rax*4]
je 0x61cc418a
bswap edi
test edi, edi
je 0x61cc4340
sub edi, 1
cmp r13d, edi
ja 0x61cc4110
mov eax, edi
mov rdx, qword [rbp - 0x70]
sub eax, r13d
shl rax, 4
add rax, qword [rsi + 0x48]
cmp qword [rax], rdx
jbe 0x61cc416d
mov rdx, qword [rax + 8]
mov rcx, qword [rbp - 0x78]
mov qword [rbp - 0xa0], r8
mov dword [rbp - 0xa8], r11d
call sub.msvcrt.dll_strcmp
test eax, eax
mov r11d, dword [rbp - 0xa8]
mov r8, qword [rbp - 0xa0]
sete al
test al, al
je 0x61cc416d
mov r8d, r13d
mov qword [rbp - 0x70], r8
cmp rdi, qword [rbp - 0x70]
jae 0x61cc43c3
mov ecx, dword [rsi + 0x18]
mov rax, qword [rsi]
mov rdx, qword [rsi + 0x38]
test ecx, ecx
je 0x61cc43f0
lea rcx, [rdx + rdi*8]
mov edx, dword [rcx + 4]
bswap edx
mov edx, edx
lea rbx, [rax + rdx]
mov eax, dword [rcx]
mov edx, dword [rbp + 0x28]
bswap eax
test edx, edx
lea r12d, [rax + 1]
je 0x61cc43e4
cmp qword [rbp + 0x18], 0
je 0x61cc441c
mov rdx, qword [rbp + 0x18]
mov rdx, qword [rdx + 0x10]
test rdx, rdx
mov qword [rbp - 0x68], rdx
je 0x61cc441c
lea rdx, [rsi + 0x80]
mov rcx, rdx
mov qword [rbp - 0x78], rdx
call sym.libintl_8.dll_libintl_rwlock_rdlock_func
test eax, eax
jne 0x61cc4611
mov r9, qword [rsi + 0x78]
test r9, r9
je 0x61cc4459
mov rax, qword [rsi + 0x70]
lea rdx, [r9 + r9*2]
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x88], rsi
mov rbx, r9
lea r14, [rax + rdx*8 - 0x18]
mov rsi, r14
mov r14, qword [rbp - 0x68]
jmp 0x61cc42ad
sub rsi, 0x18
test rbx, rbx
je 0x61cc444e
mov rcx, qword [rsi]
mov rdx, r14
sub rbx, 1
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x61cc42a0
mov qword [rbp - 0x70], rsi
mov rbx, qword [rbp - 0x80]
mov rsi, qword [rbp - 0x88]
mov rcx, qword [rbp - 0x78]
call sym.libintl_8.dll_libintl_rwlock_unlock_func
test eax, eax
jne 0x61cc4611
mov rax, qword [rbp - 0x70]
cmp qword [rax + 8], 0xffffffffffffffff
je 0x61cc43e4
mov rax, qword [rax + 0x10]
test rax, rax
je 0x61cc488f
cmp rax, 0xffffffffffffffff
je 0x61cc4887
mov rax, qword [rax + rdi*8]
test rax, rax
je 0x61cc4530
lea rbx, [rax + 8]
mov r12, qword [rax]
jmp 0x61cc43e4
mov edx, dword [r10 + rdx*8 + 4]
jmp 0x61cc413c
cmp rdi, r12
mov rsi, rdi
ja 0x61cc43b1
nop dword [rax + rax]
xor ebx, ebx
mov rax, rbx
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r8d, r13d
mov dword [rbp - 0x78], r13d
xor r12d, r12d
mov r13, rsi
mov qword [rbp - 0x70], r8
mov rsi, r8
mov qword [rbp - 0x68], r14
jmp 0x61cc43a0
mov edx, dword [r15 + rdi*8 + 4]
bswap edx
mov edx, edx
mov rcx, qword [rbp - 0x68]
add rdx, r14
call sub.msvcrt.dll_strcmp
cmp eax, 0
jl 0x61cc4330
je 0x61cc4410
lea r12, [rdi + 1]
cmp r12, rsi
jae 0x61cc4340
mov r14, qword [r13]
mov ebx, dword [r13 + 0x18]
mov r15, qword [r13 + 0x30]
lea rdi, [rsi + r12]
shr rdi, 1
test ebx, ebx
jne 0x61cc4380
mov edx, dword [r15 + rdi*8 + 4]
jmp 0x61cc4389
mov rax, rdi
sub rax, qword [rbp - 0x70]
shl rax, 4
add rax, qword [rsi + 0x50]
mov rbx, qword [rax + 8]
mov r12, qword [rax]
mov edx, dword [rbp + 0x28]
test edx, edx
jne 0x61cc422b
mov rax, qword [rbp + 0x30]
mov qword [rax], r12
jmp 0x61cc4342
lea rdx, [rdx + rdi*8]
mov ebx, dword [rdx + 4]
add rbx, rax
mov eax, dword [rdx]
lea r12d, [rax + 1]
jmp 0x61cc43d9
call sym.libintl_8.dll__nl_load_domain
jmp 0x61cc4092
mov rsi, r13
mov r13d, dword [rbp - 0x78]
jmp 0x61cc41ed
mov eax, dword [0x61ce0080]
test eax, eax
je 0x61cc44f9
mov rax, qword [0x61ce0088]
mov qword [rbp - 0x68], rax
cmp qword [rbp - 0x68], 0
jne 0x61cc424b
call sym.libintl_8.dll_locale_charset
mov qword [rbp - 0x68], rax
jmp 0x61cc424b
mov rbx, qword [rbp - 0x80]
mov rsi, qword [rbp - 0x88]
mov rcx, qword [rbp - 0x78]
call sym.libintl_8.dll_libintl_rwlock_unlock_func
test eax, eax
jne 0x61cc4611
mov rcx, qword [rbp - 0x78]
call sym.libintl_8.dll_libintl_rwlock_wrlock_func
test eax, eax
jne 0x61cc4611
mov r8, qword [rsi + 0x78]
test r8, r8
mov qword [rbp - 0x80], r8
je 0x61cc4877
mov r8, qword [rbp - 0x80]
mov rdx, qword [rsi + 0x70]
mov r9, qword [rbp - 0x80]
mov qword [rbp - 0x90], rbx
mov qword [rbp - 0x98], rsi
mov r14, qword [rbp - 0x68]
lea rax, [r8 + r8*2]
mov qword [rbp - 0x88], rdx
mov rbx, r9
lea r8, [rdx + rax*8 - 0x18]
mov rsi, r8
jmp 0x61cc44cf
sub rsi, 0x18
test rbx, rbx
je 0x61cc46ed
mov rcx, qword [rsi]
mov rdx, r14
sub rbx, 1
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x61cc44c2
mov qword [rbp - 0x70], rsi
mov rbx, qword [rbp - 0x90]
mov rsi, qword [rbp - 0x98]
jmp 0x61cc42cf
lea rcx, str.OUTPUT_CHARSET
call sub.msvcrt.dll_getenv
test rax, rax
mov r15, rax
je 0x61cc4516
cmp byte [rax], 0
jne 0x61cc46b2
mov rax, qword [0x61ce0088]
mov qword [rbp - 0x68], rax
mov dword [0x61ce0080], 1
jmp 0x61cc4435
lea rcx, [0x61cd7200]
call sym.libintl_8.dll_libintl_lock_lock_func
test eax, eax
jne 0x61cc4611
mov rdx, qword [0x61ce0070]
xor r15d, r15d
xor r13d, r13d
mov rax, r15
mov qword [rbp - 0x68], rdi
mov r15d, r13d
lea rsi, [rbp - 0x48]
mov r14, qword [sym.imp.msvcrt.dll__errno]
mov rdi, qword [rbp - 0x70]
add rdx, 8
mov r13, rax
jmp 0x61cc45b0
test r15d, r15d
je 0x61cc4620
add r15d, 1
mov rcx, r13
imul edx, r15d, 0xff0
movsxd rdx, edx
mov qword [0x61ce0078], rdx
call sub.msvcrt.dll_realloc
test rax, rax
je 0x61cc484c
lea rdx, [rax + 8]
mov qword [0x61ce0070], rax
mov r13, rax
mov qword [rbp - 0x50], rdx
mov rdx, qword [0x61ce0078]
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], r12
cmp rdx, 7
jbe 0x61cc4573
sub rdx, 8
mov rcx, qword [rdi + 8]
lea r9, [rbp - 0x50]
mov qword [rbp - 0x48], rdx
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x60]
mov qword [rsp + 0x20], rsi
call fcn.61cd0010
cmp rax, 0xffffffffffffffff
jne 0x61cc4640
call r14
cmp dword [rax], 7
je 0x61cc4573
lea rcx, [0x61cd7200]
call sym.libintl_8.dll_libintl_lock_unlock_func
test eax, eax
je 0x61cc4340
call sub.msvcrt.dll_abort
nop word cs:[rax + rax]
mov ecx, 0xff0
mov qword [0x61ce0078], 0xff0
mov r15d, 1
call sub.msvcrt.dll_malloc
jmp 0x61cc4599
mov rdx, qword [rbp - 0x50]
mov rax, qword [0x61ce0070]
mov r8, qword [rbp - 0x70]
mov rdi, qword [rbp - 0x68]
mov rcx, rdx
sub rcx, rax
sub rcx, 8
mov qword [rax], rcx
mov rcx, qword [r8 + 0x10]
mov qword [rcx + rdi*8], rax
sub rax, rdx
add rax, qword [0x61ce0078]
mov rcx, rax
and rax, 0xfffffffffffffff8
and ecx, 7
mov qword [0x61ce0078], rax
add rdx, rcx
lea rcx, [0x61cd7200]
mov qword [0x61ce0070], rdx
call sym.libintl_8.dll_libintl_lock_unlock_func
test eax, eax
jne 0x61cc4611
mov rdx, qword [rbp - 0x70]
mov rax, qword [rdx + 0x10]
mov rax, qword [rax + rdi*8]
jmp 0x61cc4313
mov rcx, rax
call sub.msvcrt.dll_strlen
lea r14, [rax + 1]
mov rcx, r14
call sub.msvcrt.dll_malloc
test rax, rax
mov qword [rbp - 0x68], rax
je 0x61cc46dd
mov r8, r14
mov rdx, r15
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp - 0x68]
mov qword [0x61ce0088], rax
jmp 0x61cc4521
mov rbx, qword [rbp - 0x90]
mov rsi, qword [rbp - 0x98]
cmp qword [rbp - 0x88], 0
je 0x61cc4833
mov r8, qword [rbp - 0x80]
mov rcx, qword [rbp - 0x88]
lea rdx, [r8 + r8*2 + 3]
shl rdx, 3
call sub.msvcrt.dll_realloc
mov r14, rax
test r14, r14
je 0x61cc4819
mov rcx, qword [rbp - 0x68]
mov qword [rsi + 0x70], r14
call sub.msvcrt.dll__strdup
test rax, rax
mov r15, rax
je 0x61cc4819
mov r8, qword [rbp - 0x80]
mov rdx, qword [rbp + 0x18]
xor r9d, r9d
mov rcx, qword [rbp + 0x10]
lea rax, [r8 + r8*2]
lea r8, [0x61cda0db]
lea rax, [r14 + rax*8]
mov qword [rax], r15
mov qword [rax + 8], 0xffffffffffffffff
mov qword [rbp - 0x70], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
call sym.libintl_8.dll__nl_find_msg
test rax, rax
je 0x61cc4803
lea rdx, str.charset
mov rcx, rax
call sub.msvcrt.dll_strstr
test rax, rax
je 0x61cc4803
lea r11, [rax + 8]
lea rdx, [0x61cda0e5]
mov rcx, r11
mov qword [rbp - 0xa8], r11
call sub.msvcrt.dll_strcspn
mov r8, rax
lea rax, [rax + 0x1f]
and rax, 0xfffffffffffffff0
call fcn.61cd1480
mov r11, qword [rbp - 0xa8]
sub rsp, rax
lea r9, [rsp + 0x30]
mov rdx, r11
mov rcx, r9
mov qword [rbp - 0xa0], r9
call fcn.61cd1500
mov byte [rax], 0
mov r9, qword [rbp - 0xa0]
mov rcx, r15
mov rdx, r9
call fcn.61ccfca0
mov rdx, qword [rbp - 0x70]
mov qword [rdx + 8], rax
mov r8, qword [rbp - 0x70]
mov qword [r8 + 0x10], 0
add qword [rsi + 0x78], 1
jmp 0x61cc42cf
mov rcx, qword [rbp - 0x78]
call sym.libintl_8.dll_libintl_rwlock_unlock_func
test eax, eax
jne 0x61cc4611
or rbx, 0xffffffffffffffff
jmp 0x61cc4342
mov rcx, qword [rbp - 0x80]
add rcx, 1
imul rcx, rcx, 0x18
call sub.msvcrt.dll_malloc
mov r14, rax
jmp 0x61cc4725
lea rcx, [0x61cd7200]
mov qword [0x61ce0070], 0
mov qword [0x61ce0078], 0
call sym.libintl_8.dll_libintl_lock_unlock_func
test eax, eax
je 0x61cc482a
jmp 0x61cc4611
mov rax, qword [rsi + 0x70]
mov qword [rbp - 0x88], rax
jmp 0x61cc46fb
mov rbx, rax
jmp 0x61cc4342
lea rcx, [0x61cd7200]
call sym.libintl_8.dll_libintl_lock_lock_func
test eax, eax
jne 0x61cc4611
mov r8, qword [rbp - 0x70]
cmp qword [r8 + 0x10], 0
je 0x61cc48cf
lea rcx, [0x61cd7200]
call sym.libintl_8.dll_libintl_lock_unlock_func
test eax, eax
jne 0x61cc4611
mov r8, qword [rbp - 0x70]
mov rax, qword [r8 + 0x10]
jmp 0x61cc42fc
mov ecx, r13d
add ecx, dword [rsi + 0x40]
mov edx, 8
call sub.msvcrt.dll_calloc
mov rdx, qword [rbp - 0x70]
test rax, rax
mov qword [rdx + 0x10], rax
jne 0x61cc4544
mov qword [rdx + 0x10], 0xffffffffffffffff
jmp 0x61cc48ae