Function at 0x404300
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0x18]
push edi
push esi
push ebx
sub esp, 0xcc
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x64]
mov dword [esp], eax
mov dword [ebp - 0x4c], sym.___gxx_personality_sj0
mov dword [ebp - 0x48], 0x43305d
mov dword [ebp - 0x40], 0x404ac0
mov dword [ebp - 0x3c], esp
call sym.__Unwind_SjLj_Register
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x404a25
mov edi, dword [0x4377c0]
test edi, edi
je 0x404a14
cld
mov esi, dword [ebp + 0xc]
mov edi, 0x4042ad
mov ecx, 2
repe cmpsb byte [esi], byte es:[edi]
je 0x404410
mov esi, dword [ebp + 0xc]
mov edi, 0x4042af
mov ecx, 6
repe cmpsb byte [esi], byte es:[edi]
je 0x404410
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0
je 0x4043d6
mov dword [esp], 0x24
mov dword [ebp - 0x60], 0xffffffff
call sym.operator_new_unsigned_int_
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov dword [esp + 8], 1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], 5
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.std::locale::_Impl::_Impl_char_const__unsigned_int_
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea eax, [ebp - 0x64]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x4042b5
call sym._getenv
mov dword [ebp - 0x70], eax
test eax, eax
je 0x404465
cmp byte [eax], 0
je 0x404465
cld
mov esi, eax
mov edi, 0x4042ad
mov ecx, 2
repe cmpsb byte [esi], byte es:[edi]
je 0x404410
mov esi, dword [ebp - 0x70]
mov edi, 0x4042af
mov ecx, 6
repe cmpsb byte [esi], byte es:[edi]
jne 0x404424
mov edx, dword [ebp + 8]
mov eax, dword [0x4377c0]
mov dword [edx], eax
mov edx, 1
lock add dword [eax], edx
jmp 0x4043c0
mov dword [esp], 0x24
mov dword [ebp - 0x60], 0xffffffff
call sym.operator_new_unsigned_int_
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x70]
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [ebp - 0x60], 4
call sym.std::locale::_Impl::_Impl_char_const__unsigned_int_
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
jmp 0x4043c0
mov dword [esp], 0x4042bc
call sym._getenv
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x4044a3
cmp byte [eax], 0
je 0x4044a3
cld
mov esi, eax
mov edi, 0x4042ad
mov ecx, 2
repe cmpsb byte [esi], byte es:[edi]
je 0x4044a3
mov esi, dword [ebp - 0x7c]
mov edi, 0x4042af
mov ecx, 6
repe cmpsb byte [esi], byte es:[edi]
jne 0x404a09
mov dword [esp], 0x4042ad
mov dword [ebp - 0x60], 0xffffffff
mov edi, 0x4042ad
call sym._strdup
mov dword [ebp - 0x78], eax
mov ecx, 2
mov esi, dword [ebp - 0x78]
mov dword [ebp - 0x80], 0
cld
repe cmpsb byte [esi], byte es:[edi]
jne 0x4049c3
lea esi, [esi]
lea edi, [edi]
mov edx, dword [ebp - 0x80]
mov eax, dword [edx*4 + 0x434090]
mov dword [esp], eax
call sym._getenv
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x404530
cmp byte [eax], 0
je 0x404530
cld
mov esi, eax
mov edi, 0x4042ad
mov ecx, 2
repe cmpsb byte [esi], byte es:[edi]
je 0x404530
mov esi, dword [ebp - 0x7c]
mov edi, 0x4042af
mov ecx, 6
repe cmpsb byte [esi], byte es:[edi]
jne 0x4045b7
lea esi, [esi]
lea edi, [edi]
inc dword [ebp - 0x80]
cmp dword [ebp - 0x80], 5
jbe 0x4044e0
cld
mov esi, dword [ebp - 0x78]
mov edi, 0x4042ad
mov ecx, 2
repe cmpsb byte [esi], byte es:[edi]
jne 0x40456d
mov eax, dword [0x4377c0]
mov edx, 1
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lock add dword [eax], edx
mov edx, dword [ebp - 0x78]
mov dword [esp], edx
call sym._free
jmp 0x4043c0
mov dword [esp], 0x24
mov dword [ebp - 0x60], 0xffffffff
call sym.operator_new_unsigned_int_
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x60], 1
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.std::locale::_Impl::_Impl_char_const__unsigned_int_
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x40455d
cmp dword [ebp - 0x80], 5
ja 0x404539
mov eax, 1
lock add dword [0x43b888], eax
mov dword [ebp - 0x28], 0x43b88c
xor esi, esi
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], esi
cmp dword [ebp - 0x84], ecx
jae 0x404692
mov eax, dword [ebp - 0x84]
mov eax, dword [eax*4 + 0x434090]
mov dword [ebp - 0x9c], eax
mov dword [esp], eax
call sym._strlen
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x9c]
lea ecx, [ebp - 0x28]
mov dword [esp], ecx
mov dword [ebp - 0x60], 3
mov dword [esp + 4], edx
call method.std::string.append_char_const__unsigned_int_
mov dword [esp + 8], 0x3d
lea eax, [ebp - 0x28]
mov dword [esp + 4], 1
mov dword [esp], eax
call method.std::string.append_unsigned_int__char_
mov edx, dword [ebp - 0x78]
mov dword [esp], edx
call sym._strlen
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call method.std::string.append_char_const__unsigned_int_
mov dword [esp + 8], 0x3b
lea edx, [ebp - 0x28]
mov dword [esp + 4], 1
mov dword [esp], edx
call method.std::string.append_unsigned_int__char_
inc dword [ebp - 0x84]
mov ecx, dword [ebp - 0x80]
cmp dword [ebp - 0x84], ecx
jb 0x4045eb
mov eax, dword [ebp - 0x80]
mov eax, dword [eax*4 + 0x434090]
mov dword [ebp - 0xa0], eax
mov dword [esp], eax
call sym._strlen
mov dword [esp + 8], eax
mov edx, dword [ebp - 0xa0]
lea ecx, [ebp - 0x28]
mov dword [esp], ecx
mov dword [ebp - 0x60], 3
mov dword [esp + 4], edx
call method.std::string.append_char_const__unsigned_int_
mov dword [esp + 8], 0x3d
lea eax, [ebp - 0x28]
mov dword [esp + 4], 1
mov dword [esp], eax
call method.std::string.append_unsigned_int__char_
mov edx, dword [ebp - 0x7c]
mov dword [esp], edx
call sym._strlen
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call method.std::string.append_char_const__unsigned_int_
mov dword [esp + 8], 0x3b
lea edx, [ebp - 0x28]
mov dword [esp + 4], 1
mov dword [esp], edx
call method.std::string.append_unsigned_int__char_
inc dword [ebp - 0x80]
cmp dword [ebp - 0x80], 5
ja 0x4047ee
mov ecx, dword [ebp - 0x80]
mov edx, 0x434090
mov eax, dword [edx + ecx*4]
mov dword [esp], eax
call sym._getenv
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x404751
cmp byte [eax], 0
jne 0x4048d4
mov ecx, dword [ebp - 0x80]
mov eax, 0x434090
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0xa4], ecx
mov dword [esp], ecx
call sym._strlen
mov dword [esp + 8], eax
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xa4]
mov dword [esp], edx
mov dword [ebp - 0x60], 3
mov dword [esp + 4], eax
call method.std::string.append_char_const__unsigned_int_
mov dword [esp + 8], 0x3d
lea ecx, [ebp - 0x28]
mov dword [esp + 4], 1
mov dword [esp], ecx
call method.std::string.append_unsigned_int__char_
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x78]
mov dword [esp + 4], edx
lea ecx, [ebp - 0x28]
mov dword [esp], ecx
call method.std::string.append_char_const__unsigned_int_
mov dword [esp + 8], 0x3b
lea eax, [ebp - 0x28]
mov dword [esp + 4], 1
mov dword [esp], eax
call method.std::string.append_unsigned_int__char_
inc dword [ebp - 0x80]
cmp dword [ebp - 0x80], 5
jbe 0x40472e
mov eax, dword [ebp - 0x28]
sub eax, 0xc
mov eax, dword [eax + 8]
shr eax, 0x1f
test al, al
jne 0x404810
mov dword [ebp - 0x60], 3
lea edx, [ebp - 0x28]
mov dword [esp], edx
call fcn.00424470
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax - 0xc]
mov ecx, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
add ecx, ebx
lea edx, [ecx - 1]
mov dword [ebp - 0x60], 3
sub ecx, edx
mov ebx, edx
mov dword [esp + 8], ecx
sub ebx, eax
lea ecx, [ebp - 0x28]
mov dword [esp + 4], ebx
mov dword [esp], ecx
call method.std::string.replace_unsigned_int__unsigned_int__char_const__unsigned_int_
mov eax, dword [ebp - 0x28]
sub eax, 0xc
mov dword [eax + 8], 0xffffffff
mov dword [esp], 0x24
call sym.operator_new_unsigned_int_
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x28]
movzx edx, byte [0x4350c4]
mov ecx, dword [eax - 0xc]
add eax, ecx
mov byte [eax], dl
mov eax, dword [ebp - 0x28]
mov dword [esp + 8], 1
mov dword [ebp - 0x60], 2
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call sym.std::locale::_Impl::_Impl_char_const__unsigned_int_
mov edx, dword [ebp - 0x88]
lea ebx, [ebp - 0x38]
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp - 0x28]
mov eax, 0xffffffff
lea ecx, [edx - 0xc]
lock xadd dword [edx - 4], eax
test eax, eax
jg 0x40455d
mov dword [esp + 4], ebx
mov dword [esp], ecx
call method.std::string::_Rep._M_destroy_std::allocator_char__const_
jmp 0x40455d
cld
mov esi, dword [ebp - 0x7c]
mov edi, 0x4042ad
mov ecx, 2
repe cmpsb byte [esi], byte es:[edi]
je 0x4048f7
mov esi, dword [ebp - 0x7c]
mov edi, 0x4042af
mov ecx, 6
repe cmpsb byte [esi], byte es:[edi]
jne 0x404958
mov edx, dword [ebp - 0x80]
mov ecx, 0x434090
mov edx, dword [ecx + edx*4]
mov dword [ebp - 0xa8], edx
mov dword [esp], edx
call sym._strlen
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0xa8]
lea eax, [ebp - 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [ebp - 0x60], 3
call method.std::string.append_char_const__unsigned_int_
mov dword [esp], 0x4042c1
call sym._strlen
mov dword [esp + 8], eax
lea edx, [ebp - 0x28]
mov dword [esp + 4], 0x4042c1
mov dword [esp], edx
call method.std::string.append_char_const__unsigned_int_
jmp 0x4047e1
mov ecx, dword [ebp - 0x80]
mov eax, 0x434090
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0xac], ecx
mov dword [esp], ecx
call sym._strlen
mov dword [esp + 8], eax
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xac]
mov dword [esp], edx
mov dword [ebp - 0x60], 3
mov dword [esp + 4], eax
call method.std::string.append_char_const__unsigned_int_
mov dword [esp + 8], 0x3d
lea ecx, [ebp - 0x28]
mov dword [esp + 4], 1
mov dword [esp], ecx
call method.std::string.append_unsigned_int__char_
mov eax, dword [ebp - 0x7c]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x7c]
jmp 0x4047b7
mov ecx, dword [ebp - 0x80]
mov eax, dword [ecx*4 + 0x434090]
mov dword [esp], eax
call sym._getenv
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x4049fb
cmp byte [eax], 0
je 0x4049fb
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0x7c]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._strcmp
test eax, eax
jne 0x4045b7
inc dword [ebp - 0x80]
cmp dword [ebp - 0x80], 5
jbe 0x4049c3
jmp 0x404539
mov ecx, dword [ebp - 0x7c]
mov dword [esp], ecx
jmp 0x4044aa
mov dword [ebp - 0x60], 0xffffffff
call method.std::locale.classic__
jmp 0x40434e
mov dword [esp], 0x4042d0
mov dword [ebp - 0x60], 0xffffffff
call method.std.__throw_runtime_error_char_const_
jmp 0x4043c0