Function at 0x4697d0
Capabilities:
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4fbccf
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54a020]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [esp + 0x104]
push 0xffffffffffffffff
xor ebp, ebp
push ebp
push eax
lea ecx, [esp + 0x24]
call fcn.0047be80
lea ecx, [esp + 0x30]
mov dword [esp + 0xf8], ebp
call fcn.0047b880
lea ecx, [esp + 0x24]
mov byte [esp + 0xf8], 1
call fcn.0047b880
mov eax, ebx
shr eax, 2
and al, 1
mov byte [esp + 0x15], al
mov eax, ebx
shr eax, 1
push ebp
and al, 1
and bl, 1
push 0x50c00c
lea ecx, [esp + 0x20]
mov byte [esp + 0x100], 2
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], bl
call fcn.0047bc80
mov esi, eax
cmp esi, 0xffffffff
je 0x469984
push esi
push 0x50c010
lea ecx, [esp + 0x20]
call fcn.0047bc80
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4699d4
mov edi, ebx
sub edi, esi
lea ecx, [edi - 2]
push ecx
lea edx, [esi + 2]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
call fcn.0047ba20
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x2c]
call fcn.0047c1b0
cmp byte [esp + 0x16], 0
je 0x469908
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x10c]
lea edx, [esp + 0x4c]
push edx
call fcn.0046f290
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xfc], 7
call fcn.0047beb0
lea ecx, [esp + 0x48]
mov byte [esp + 0xf8], 2
call fcn.0047b260
cmp byte [esp + 0x15], 0
jne 0x469940
cmp dword [esp + 0x28], 0
jne 0x469940
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x469915
mov eax, 0x533e66
push eax
call dword [sym.imp.MSVCR80.dll_getenv]
add esp, 4
test eax, eax
je 0x46992d
push eax
lea ecx, [esp + 0x28]
call fcn.0047bed0
cmp byte [esp + 0x15], 0
jne 0x469940
cmp dword [esp + 0x28], 0
jne 0x469940
lea ebp, [ebx + 1]
jmp 0x46996a
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x2c]
push eax
add edi, 1
push edi
push esi
lea ecx, [esp + 0x2c]
call fcn.0047c280
cmp byte [esp + 0x17], 0
mov byte [esp + 0x14], 1
jne 0x46996a
mov ecx, dword [esp + 0x28]
lea ebp, [ecx + esi]
push ebp
push 0x50c00c
lea ecx, [esp + 0x20]
call fcn.0047bc80
mov esi, eax
cmp esi, 0xffffffff
jne 0x469879
mov ecx, dword [esp + 0x100]
lea edx, [esp + 0x18]
push edx
call fcn.0047beb0
lea ecx, [esp + 0x24]
mov byte [esp + 0xf8], 1
call fcn.0047b260
lea ecx, [esp + 0x30]
mov byte [esp + 0xf8], 0
call fcn.0047b260
lea ecx, [esp + 0x18]
mov dword [esp + 0xf8], 0xffffffff
call fcn.0047b260
mov al, byte [esp + 0x14]
jmp 0x469afe
push 1
push 2
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
push 0x504efc
push esi
push str.Opening_brace_at_position
push str.__has_no_closing_brace.
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x84]
push 0x22
mov bl, 3
push ecx
mov byte [esp + 0x114], bl
call fcn.004292d0
add esp, 8
push eax
call fcn.0047b380
add esp, 8
push eax
call fcn.00413340
add esp, 8
push eax
call fcn.00413340
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
push eax
call fcn.00413340
add esp, 8
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x74]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0xf8], 4
jb 0x469a60
mov eax, dword [eax + 4]
jmp 0x469a63
add eax, 4
push eax
lea ecx, [esp + 0x40]
call fcn.0047b960
lea ecx, [esp + 0x54]
mov byte [esp + 0xf8], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x3c]
push eax
call fcn.0046de70
mov ecx, dword [esp + 0x104]
push ecx
mov ecx, dword [esp + 0x104]
call fcn.0047beb0
lea ecx, [esp + 0x3c]
mov byte [esp + 0xf8], bl
call fcn.0047b260
lea ecx, [esp + 0x70]
mov byte [esp + 0xf8], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
lea ecx, [esp + 0x24]
mov byte [esp + 0xf8], 1
call fcn.0047b260
lea ecx, [esp + 0x30]
mov byte [esp + 0xf8], 0
call fcn.0047b260
lea ecx, [esp + 0x18]
mov dword [esp + 0xf8], 0xffffffff
call fcn.0047b260
xor al, al
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe8
ret