Function at 0x46a2d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ff39
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x57a6d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x46c], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x478], eax
mov dword [ebp - 0x468], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x470], 0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x46a32f
mov eax, dword [eax]
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
mov dword [ebp - 0x268], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46a370
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x278]
call fcn.0043eaa0
cmp dword [ebp - 0x264], 8
lea ebx, [ebp - 0x278]
mov esi, dword [ebp - 0x268]
cmovae ebx, dword [ebp - 0x278]
or edi, 0xffffffff
mov dword [ebp - 4], 1
test esi, esi
je 0x46a47d
push 0x100
lea eax, [ebp - 0x458]
push 0
push eax
call fcn.004d8430
add esp, 0xc
mov ecx, 0x52f9a4
mov edx, 0x100
nop
movzx eax, word [ecx]
cmp ax, dx
jae 0x46a431
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x458], 1
cmp ecx, 0x52f9a6
jne 0x46a3e0
lea eax, [esi - 1]
mov ecx, edi
cmp eax, 0xffffffff
cmovb ecx, eax
lea ecx, [ebx + ecx*2]
nop dword [eax]
movzx eax, word [ecx]
cmp ax, dx
jae 0x46a422
cmp byte [ebp + eax - 0x458], 0
jne 0x46a42b
cmp ecx, ebx
je 0x46a47d
sub ecx, 2
jmp 0x46a410
sub ecx, ebx
sar ecx, 1
jmp 0x46a480
lea eax, [esi - 1]
or edi, 0xffffffff
cmp eax, edi
mov ecx, edi
cmovb ecx, eax
lea ecx, [ebx + ecx*2]
movzx esi, word [ecx]
mov edx, 1
mov eax, 0x52f9a4
nop
cmp word [eax], si
je 0x46a471
add eax, 2
sub edx, 1
jne 0x46a450
cmp ecx, ebx
je 0x46a466
sub ecx, 2
jmp 0x46a441
mov esi, dword [ebp - 0x268]
or ecx, 0xffffffff
jmp 0x46a480
mov esi, dword [ebp - 0x268]
sub ecx, ebx
sar ecx, 1
jmp 0x46a480
or ecx, 0xffffffff
lea edx, [ecx + 1]
mov dword [ebp - 0x238], 0
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp esi, edx
jb 0x46ab45
sub esi, edx
lea eax, [ebp - 0x278]
cmp esi, 0xffffffff
mov ecx, edi
cmovb ecx, esi
cmp dword [ebp - 0x264], 8
push ecx
cmovae eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x248]
lea eax, [eax + edx*2]
push eax
call fcn.0043eaa0
push 0xb0
lea eax, [ebp - 0x358]
push 0
push eax
call fcn.004d8430
add esp, 0xc
mov dword [ebp - 0x358], 0x532370
mov dword [ebp - 0x348], 0x532378
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
push 0
lea eax, [ebp - 0x340]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x358]
mov dword [ebp - 0x470], 6
call fcn.004686b0
mov eax, dword [ebp - 0x358]
push 3
mov dword [ebp - 4], 4
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x358]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x35c], eax
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x340]
call fcn.00468850
xor eax, eax
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
xorps xmm0, xmm0
mov dword [ebp - 0x21c], eax
movq qword [ebp - 0x224], xmm0
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
push 0x5c
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x358]
push eax
call fcn.004684a0
mov ecx, eax
add esp, 0xc
mov eax, dword [ecx]
mov eax, dword [eax + 4]
test byte [eax + ecx + 0xc], 6
jne 0x46a637
nop dword [eax + eax]
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x290]
push ecx
cmp dword [ebp - 0x21c], eax
je 0x46a605
mov ecx, eax
call fcn.004368a0
add dword [ebp - 0x220], 0x18
jmp 0x46a611
push eax
lea ecx, [ebp - 0x224]
call fcn.00466870
push 0x5c
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x358]
push eax
call fcn.004684a0
mov ecx, eax
add esp, 0xc
mov eax, dword [ecx]
mov eax, dword [eax + 4]
test byte [eax + ecx + 0xc], 6
je 0x46a5e0
mov ecx, dword [ebp - 0x220]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x224]
xorps xmm0, xmm0
imul ecx
movq qword [ebp - 0x230], xmm0
lea ecx, [ebp - 0x461]
mov dword [ebp - 0x228], 0
sar edx, 2
mov eax, edx
shr eax, 0x1f
push ecx
add eax, edx
lea ecx, [ebp - 0x230]
push eax
call fcn.00468a30
mov ecx, dword [ebp - 0x220]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x224]
xor ebx, ebx
sub ecx, esi
mov byte [ebp - 4], 8
imul ecx
mov dword [ebp - 0x45c], ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x46a86a
nop dword [eax]
test ebx, ebx
jne 0x46a701
mov edx, dword [esi + 0x14]
mov ecx, esi
mov eax, ecx
cmp edx, 8
jb 0x46a6c2
mov ecx, dword [esi]
mov ebx, dword [esi + 0x10]
cmp word [ecx + ebx*2 - 2], 0x3a
mov ebx, dword [ebp - 0x45c]
jne 0x46a701
cmp dword [ebp - 0x230], eax
je 0x46a842
cmp edx, 8
jb 0x46a6e6
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
push ecx
mov ecx, dword [ebp - 0x230]
push eax
call fcn.0043eaa0
mov esi, dword [ebp - 0x224]
jmp 0x46a842
mov byte [ebp - 0x460], 0
lea ebx, [ebx + ebx*2]
push dword [ebp - 0x460]
xor ecx, ecx
shl ebx, 3
sub esp, 0x18
mov eax, esp
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x224]
lea eax, [ecx + 0x18]
add eax, ebx
push eax
push ecx
lea eax, [ebp - 0x2a8]
push eax
call fcn.00468210
add esp, 0x28
mov ecx, dword [ebp - 0x46c]
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 9
push eax
call fcn.0046a000
cmp dword [ebp - 0x250], 0
lea ecx, [ebp - 0x260]
mov esi, dword [ebp - 0x224]
mov byte [ebp - 4], 0xa
jne 0x46a781
lea ecx, [ebx + esi]
mov edx, dword [ebp - 0x230]
add edx, ebx
cmp edx, ecx
je 0x46a7a8
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x46a797
mov eax, dword [ecx]
push dword [ecx + 0x10]
mov ecx, edx
push eax
call fcn.0043eaa0
mov esi, dword [ebp - 0x224]
mov edx, dword [ebp - 0x24c]
mov byte [ebp - 4], 9
cmp edx, 8
jb 0x46a7f2
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46a7e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46ab4a
push edx
push ecx
call fcn.0049a900
mov esi, dword [ebp - 0x224]
add esp, 8
mov edx, dword [ebp - 0x294]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x46a83c
mov ecx, dword [ebp - 0x2a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46a82c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46ab4a
push edx
push ecx
call fcn.0049a900
mov esi, dword [ebp - 0x224]
add esp, 8
mov ebx, dword [ebp - 0x45c]
mov ecx, dword [ebp - 0x220]
mov eax, 0x2aaaaaab
sub ecx, esi
inc ebx
imul ecx
mov dword [ebp - 0x45c], ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x46a6b0
mov esi, dword [ebp - 0x468]
xor ecx, ecx
mov byte [ebp - 0x46c], 0
push dword [ebp - 0x46c]
sub esp, 0x18
mov eax, esp
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push dword [ebp - 0x22c]
push dword [ebp - 0x230]
push esi
call fcn.00468210
add esp, 0x28
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
mov ebx, dword [ebp - 0x248]
mov edx, esi
cmovae eax, ebx
mov dword [ebp - 0x45c], esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x460], eax
jb 0x46a8dc
mov edx, dword [esi]
mov dword [ebp - 0x45c], edx
mov ecx, dword [ebp - 0x238]
mov eax, dword [esi + 0x10]
test ecx, ecx
jne 0x46a8f1
cmp eax, 0xffffffff
cmovb edi, eax
jmp 0x46a949
cmp ecx, eax
ja 0x46a978
sub eax, ecx
cmp eax, 0xffffffff
cmovb edi, eax
mov eax, dword [ebp - 0x460]
lea edi, [edx + edi*2]
mov esi, edi
sub esi, eax
nop
movzx ecx, word [eax]
cmp word [edi], cx
mov ecx, dword [ebp - 0x238]
jne 0x46a966
mov edx, ecx
test edx, edx
je 0x46a93b
mov cx, word [eax + esi]
cmp cx, word [eax]
jne 0x46a954
add eax, 2
sub edx, 1
jne 0x46a924
mov ecx, dword [ebp - 0x238]
sub edi, dword [ebp - 0x45c]
mov esi, dword [ebp - 0x468]
sar edi, 1
cmp edi, 0xffffffff
jne 0x46aa4e
jmp 0x46a978
mov ecx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x460]
mov edx, dword [ebp - 0x45c]
cmp edi, edx
je 0x46a972
sub edi, 2
sub esi, 2
jmp 0x46a910
mov esi, dword [ebp - 0x468]
xor eax, eax
mov byte [ebp - 4], 0xb
mov word [ebp - 0x260], ax
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x470], 0xf
call fcn.0043fe80
push 1
push 0x52f9a4
lea ecx, [ebp - 0x260]
call fcn.0043e810
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push dword [ebp - 0x238]
cmovae eax, ebx
lea ecx, [ebp - 0x260]
push eax
call fcn.0043e810
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
push dword [ebp - 0x250]
cmovae eax, dword [ebp - 0x260]
mov ecx, esi
push eax
call fcn.0043e810
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x46aa48
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46aa3e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46ab4a
push edx
push ecx
call fcn.0049a900
add esp, 8
mov ebx, dword [ebp - 0x248]
lea ecx, [ebp - 0x230]
call fcn.00461840
lea ecx, [ebp - 0x224]
call fcn.00461840
mov edx, dword [ebp - 0x27c]
cmp edx, 8
jb 0x46aaa4
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46aa9a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46ab4f
push edx
push ecx
call fcn.0049a900
add esp, 8
lea ecx, [ebp - 0x358]
call fcn.00469310
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x46aae9
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x46aadf
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46ab54
push ecx
push ebx
call fcn.0049a900
add esp, 8
mov edx, dword [ebp - 0x264]
cmp edx, 8
jb 0x46ab25
mov ecx, dword [ebp - 0x278]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ab1b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46ab59
push edx
push ecx
call fcn.0049a900
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049aba8
mov esp, ebp
pop ebp
ret 8
call fcn.0043e200
call fcn.004db96a
call fcn.004db96a
call fcn.004db96a
call fcn.004db96a
int3