Function at 0x484720
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
mov dword [ecx], 0
test ebx, ebx
je 0x484fa9
call method.std::locale._S_initialize__
mov esi, ebx
mov ecx, 2
mov edi, 0x4b53e8
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
jne 0x484780
mov eax, dword [0x4b44e8]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [0x4b301c]
mov dword [edx], eax
test ecx, ecx
jne 0x484813
add dword [eax], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov ecx, 6
mov esi, ebx
mov edi, 0x4b53ea
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
je 0x484759
cmp byte [ebx], 0
jne 0x484821
mov dword [esp], str.LC_ALL
call sub.msvcrt.dll_getenv
mov ebx, eax
test eax, eax
je 0x484853
cmp byte [eax], 0
je 0x484853
mov esi, eax
mov ecx, 2
mov edi, 0x4b53e8
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
je 0x484759
mov ecx, 6
mov esi, ebx
mov edi, 0x4b53ea
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
je 0x484759
mov dword [esp], 0x14
call sym.operator_new_unsigned_int_
mov dword [esp + 4], 1
mov dword [esp], ebx
mov ecx, eax
mov esi, eax
call method.std::locale::_Impl._Impl_char_const__unsigned_int_
jmp 0x484841
lock add dword [eax], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp], 0x14
call sym.operator_new_unsigned_int_
mov dword [esp + 4], 1
mov dword [esp], ebx
mov ecx, eax
mov esi, eax
call method.std::locale::_Impl._Impl_char_const__unsigned_int_
mov eax, dword [ebp - 0x4c]
sub esp, 8
mov dword [eax], esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp], str.LANG
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x40], 0
call sub.msvcrt.dll_getenv
mov edx, dword [ebp - 0x44]
mov ebx, eax
test eax, eax
je 0x4848e0
cmp byte [eax], 0
je 0x4848e0
mov esi, eax
mov ecx, 2
mov edi, 0x4b53e8
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
je 0x4848e0
mov ecx, 6
mov esi, ebx
mov edi, 0x4b53ea
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
je 0x4848e0
mov dword [esp], ebx
mov dword [ebp - 0x50], edx
call sym._strlen
mov edx, dword [ebp - 0x50]
mov dword [esp + 8], ebx
lea ecx, [ebp - 0x48]
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov dword [esp], 0
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_replace_unsigned_int__unsigned_int__char_const__unsigned_int_
jmp 0x484903
mov dword [esp + 0xc], 1
lea ecx, [ebp - 0x48]
mov dword [esp + 8], 0x4b53e8
mov dword [esp + 4], edx
mov dword [esp], 0
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_replace_unsigned_int__unsigned_int__char_const__unsigned_int_
sub esp, 0x10
lea ecx, [ebp - 0x48]
xor ebx, ebx
mov dword [esp], 0x4b53e8
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.compare_char_const__const
sub esp, 4
test eax, eax
mov eax, dword [ebp - 0x4c]
je 0x484a99
mov edi, eax
jmp 0x48493c
add ebx, 1
cmp ebx, 6
je 0x484af0
mov eax, dword [0x4b994c]
mov eax, dword [eax + ebx*4]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
mov esi, eax
test eax, eax
je 0x484930
cmp byte [eax], 0
je 0x484930
mov dword [esp], eax
lea ecx, [ebp - 0x48]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.compare_char_const__const
sub esp, 4
test eax, eax
je 0x484930
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x4c], edi
mov dword [esp], pe_nt_image_headers32
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x28], 0
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.reserve_unsigned_int_
sub esp, 4
test ebx, ebx
je 0x484ba0
mov eax, dword [0x4b994c]
mov dword [ebp - 0x50], eax
lea eax, [eax + ebx*4]
mov dword [ebp - 0x54], eax
jmp 0x484a15
mov byte [eax + esi], 0x3d
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], edi
mov byte [eax + esi + 1], 0
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_append_char_const__unsigned_int_
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esp, 8
cmp eax, edx
mov edx, 0xf
lea edi, [esi + 1]
cmovne edx, dword [ebp - 0x28]
cmp edi, edx
ja 0x484b70
mov byte [eax + esi], 0x3b
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edi
add dword [ebp - 0x50], 4
mov byte [eax + esi + 1], 0
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x54], eax
je 0x484ba0
mov eax, dword [ebp - 0x50]
mov esi, dword [eax]
mov dword [esp], esi
call sym._strlen
mov edx, 0x7fffffff
sub edx, dword [ebp - 0x2c]
cmp eax, edx
ja 0x484fb5
mov dword [esp + 4], eax
lea ecx, [ebp - 0x30]
mov dword [esp], esi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_append_char_const__unsigned_int_
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
sub esp, 8
mov edx, 0xf
cmp eax, ecx
cmovne edx, dword [ebp - 0x28]
lea edi, [esi + 1]
cmp edi, edx
jbe 0x4849b0
mov dword [esp + 0xc], 1
lea ecx, [ebp - 0x30]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_mutate_unsigned_int__unsigned_int__char_const__unsigned_int_
sub esp, 0x10
mov eax, dword [ebp - 0x30]
jmp 0x4849b0
add ebx, 1
cmp ebx, 6
je 0x484af3
mov eax, dword [0x4b994c]
mov eax, dword [eax + ebx*4]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
test eax, eax
je 0x484a91
cmp byte [eax], 0
je 0x484a91
mov ecx, 2
mov esi, eax
mov edi, 0x4b53e8
repe cmpsb byte [esi], byte es:[edi]
seta dl
sbb dl, 0
test dl, dl
je 0x484a91
mov ecx, 6
mov esi, eax
mov edi, 0x4b53ea
repe cmpsb byte [esi], byte es:[edi]
seta dl
sbb dl, 0
test dl, dl
je 0x484a91
mov dword [ebp - 0x58], eax
jmp 0x48496f
mov dword [ebp - 0x4c], edi
mov dword [esp], 0x4b53e8
lea ecx, [ebp - 0x48]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.compare_char_const__const
sub esp, 4
test eax, eax
jne 0x484b40
mov eax, dword [0x4b44e8]
mov ebx, dword [ebp - 0x4c]
mov edx, dword [0x4b301c]
mov dword [ebx], eax
test edx, edx
jne 0x484f6f
add dword [eax], 1
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x40]
cmp eax, edx
je 0x484774
mov dword [esp], eax
call sym.operator_delete_void_
jmp 0x484774
mov dword [esp], 0x14
mov esi, dword [ebp - 0x48]
call sym.operator_new_unsigned_int_
mov dword [esp + 4], 1
mov ecx, eax
mov ebx, eax
mov dword [esp], esi
call method.std::locale::_Impl._Impl_char_const__unsigned_int_
mov eax, dword [ebp - 0x4c]
sub esp, 8
mov dword [eax], ebx
jmp 0x484b24
mov dword [esp + 0xc], 1
lea ecx, [ebp - 0x30]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_mutate_unsigned_int__unsigned_int__char_const__unsigned_int_
sub esp, 0x10
mov eax, dword [ebp - 0x30]
jmp 0x4849f6
lea eax, [ebx*4]
mov dword [ebp - 0x50], eax
mov eax, dword [0x4b994c]
mov esi, dword [eax + ebx*4]
mov dword [esp], esi
call sym._strlen
mov edx, 0x7fffffff
sub edx, dword [ebp - 0x2c]
cmp eax, edx
ja 0x484fe5
mov dword [esp + 4], eax
lea ecx, [ebp - 0x30]
mov dword [esp], esi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_append_char_const__unsigned_int_
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esp, 8
cmp edx, eax
mov eax, 0xf
lea edi, [esi + 1]
cmovne eax, dword [ebp - 0x28]
cmp edi, eax
ja 0x484f13
mov byte [edx + esi], 0x3d
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edi
mov byte [eax + esi + 1], 0
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sym._strlen
mov edx, 0x7fffffff
sub edx, dword [ebp - 0x2c]
cmp eax, edx
ja 0x484fcd
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x30]
mov dword [esp], eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_append_char_const__unsigned_int_
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esp, 8
cmp edx, eax
mov eax, 0xf
lea edi, [esi + 1]
cmovne eax, dword [ebp - 0x28]
cmp edi, eax
ja 0x484f41
mov byte [edx + esi], 0x3b
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edi
mov byte [eax + esi + 1], 0
cmp ebx, 5
je 0x484e80
mov ebx, dword [ebp - 0x50]
mov eax, dword [0x4b994c]
lea eax, [eax + ebx + 4]
mov dword [ebp - 0x50], eax
mov eax, dword [0x4b994c]
add eax, 0x18
mov dword [ebp - 0x58], eax
jmp 0x484cfd
mov ecx, 2
mov esi, ebx
mov edi, 0x4b53e8
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
je 0x484cc2
mov ecx, 6
mov esi, ebx
mov edi, 0x4b53ea
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
jne 0x484dd0
mov eax, 0x7fffffff
sub eax, dword [ebp - 0x54]
cmp eax, 2
jbe 0x484fd9
mov dword [esp + 4], 3
lea ecx, [ebp - 0x30]
mov dword [esp], 0x4b5411
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_append_char_const__unsigned_int_
sub esp, 8
add dword [ebp - 0x50], 4
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x58], eax
je 0x484e80
mov edi, dword [ebp - 0x50]
mov eax, dword [edi]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
mov esi, dword [edi]
mov ebx, eax
mov dword [esp], esi
call sym._strlen
mov edx, 0x7fffffff
sub edx, dword [ebp - 0x2c]
cmp eax, edx
ja 0x484fc1
mov dword [esp + 4], eax
lea ecx, [ebp - 0x30]
mov dword [esp], esi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_append_char_const__unsigned_int_
mov eax, dword [ebp - 0x2c]
sub esp, 8
mov dword [ebp - 0x54], eax
test ebx, ebx
je 0x484d4b
cmp byte [ebx], 0
jne 0x484c90
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x28]
mov edx, 0xf
lea ebx, [eax + 1]
mov eax, dword [ebp - 0x30]
cmp eax, ecx
cmovne edx, dword [ebp - 0x28]
cmp ebx, edx
ja 0x484ee2
mov edi, dword [ebp - 0x54]
lea ecx, [ebp - 0x30]
mov byte [eax + edi], 0x3d
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], ebx
mov byte [eax + edi + 1], 0
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_append_char_const__unsigned_int_
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
lea edi, [ebp - 0x28]
sub esp, 8
mov edx, 0xf
cmp eax, edi
cmovne edx, dword [ebp - 0x28]
lea esi, [ebx + 1]
cmp esi, edx
ja 0x484e50
mov byte [eax + ebx], 0x3b
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], esi
mov byte [eax + ebx + 1], 0
jmp 0x484ced
mov eax, dword [ebp - 0x54]
lea edi, [ebp - 0x28]
mov edx, 0xf
lea esi, [eax + 1]
mov eax, dword [ebp - 0x30]
cmp eax, edi
cmovne edx, dword [ebp - 0x28]
cmp esi, edx
ja 0x484f78
mov edi, dword [ebp - 0x54]
mov byte [eax + edi], 0x3d
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], esi
mov byte [eax + edi + 1], 0
mov dword [esp], ebx
call sym._strlen
mov edx, 0x7fffffff
sub edx, dword [ebp - 0x2c]
cmp eax, edx
ja 0x484ff1
mov dword [esp + 4], eax
lea ecx, [ebp - 0x30]
mov dword [esp], ebx
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_append_char_const__unsigned_int_
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
sub esp, 8
cmp eax, edx
mov edx, 0xf
lea esi, [ebx + 1]
cmovne edx, dword [ebp - 0x28]
cmp esi, edx
jbe 0x484db3
lea esi, [esi]
mov dword [esp + 0xc], 1
lea ecx, [ebp - 0x30]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_mutate_unsigned_int__unsigned_int__char_const__unsigned_int_
sub esp, 0x10
mov eax, dword [ebp - 0x30]
jmp 0x484db3
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], 1
lea ecx, [ebp - 0x30]
sub eax, 1
mov dword [esp], eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_erase_unsigned_int__unsigned_int_
sub esp, 8
mov esi, dword [ebp - 0x30]
mov dword [esp], 0x14
call sym.operator_new_unsigned_int_
mov dword [esp + 4], 1
mov ecx, eax
mov ebx, eax
mov dword [esp], esi
call method.std::locale::_Impl._Impl_char_const__unsigned_int_
mov eax, dword [ebp - 0x4c]
lea edi, [ebp - 0x28]
sub esp, 8
mov dword [eax], ebx
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x484b24
mov dword [esp], eax
call sym.operator_delete_void_
jmp 0x484b24
mov eax, dword [ebp - 0x54]
mov dword [esp + 0xc], 1
lea ecx, [ebp - 0x30]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_mutate_unsigned_int__unsigned_int__char_const__unsigned_int_
sub esp, 0x10
mov eax, dword [ebp - 0x30]
jmp 0x484d6a
mov dword [esp + 0xc], 1
lea ecx, [ebp - 0x30]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_mutate_unsigned_int__unsigned_int__char_const__unsigned_int_
sub esp, 0x10
mov edx, dword [ebp - 0x30]
jmp 0x484bfb
mov dword [esp + 0xc], 1
lea ecx, [ebp - 0x30]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_mutate_unsigned_int__unsigned_int__char_const__unsigned_int_
sub esp, 0x10
mov edx, dword [ebp - 0x30]
jmp 0x484c59
lock add dword [eax], 1
jmp 0x484b24
mov eax, dword [ebp - 0x54]
mov dword [esp + 0xc], 1
lea ecx, [ebp - 0x30]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_mutate_unsigned_int__unsigned_int__char_const__unsigned_int_
sub esp, 0x10
mov eax, dword [ebp - 0x30]
jmp 0x484def
mov dword [esp], str.locale::locale_null_not_valid
call method.std.__throw_runtime_error_char_const_
mov dword [esp], 0x4b53fc
call method.std.__throw_length_error_char_const_
mov dword [esp], 0x4b53fc
call method.std.__throw_length_error_char_const_
mov dword [esp], 0x4b53fc
call method.std.__throw_length_error_char_const_
mov dword [esp], 0x4b53fc
call method.std.__throw_length_error_char_const_
mov dword [esp], 0x4b53fc
call method.std.__throw_length_error_char_const_
mov dword [esp], 0x4b53fc
call method.std.__throw_length_error_char_const_
mov esi, eax
jmp method.std::locale.locale_char_const___clone_.cold.19_