Function at 0x6a7070
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x706f70
mov eax, dword [ebp + 8]
mov edi, ecx
lea ecx, [ebp - 0x18]
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], ecx
lea ecx, [ebp - 0x458]
push eax
call fcn.006a39d0
add esp, 4
mov eax, dword [ebp - 0x458]
test eax, eax
mov dword [ebp - 0x34], eax
je 0x6a71c5
mov eax, dword [ebp - 0x454]
mov esi, 0x200
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x3c], eax
cmp esi, 0x201
jae 0x6a7130
jmp 0x6a711e
jbe 0x6a71d9
cmp esi, 0x201
jae 0x6a7130
mov dword [ebp - 0x24], 0x200
lea ebx, [ebp - 0x458]
mov edi, esi
jmp 0x6a716b
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
sub esi, edi
sub eax, edi
cmp eax, esi
jae 0x6a715c
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x48]
mov edx, edi
push esi
call fcn.00718210
add esp, 4
mov eax, dword [ebp - 0x48]
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
push edi
push ebx
push dword [ebp - 0x34]
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x6a7191
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x6a72c2
cmp esi, edi
jne 0x6a7110
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x6a7312
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x6a711e
jmp 0x6a7130
lea ecx, [ebp - 0x458]
call fcn.004715d0
mov byte [edi + 0xc], 2
jmp 0x6a72ae
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], 2
cmp esi, edx
ja 0x6a7332
lea ecx, [ebp - 0x58]
mov edx, ebx
push esi
call fcn.006a53e0
add esp, 4
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x50]
movzx edx, word [ebp - 0x4b]
mov esi, dword [ebp - 0x54]
movzx ebx, byte [ebp - 0x4c]
mov dword [ebp - 0x20], eax
movzx eax, byte [ebp - 0x49]
mov dword [ebp - 0x24], ecx
mov word [ebp - 0x2c], dx
mov byte [ebp - 0x2a], al
mov edi, dword [ebp - 0x38]
cmp dword [ebp - 0x28], 0
je 0x6a7235
push dword [ebp - 0x30]
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp bl, 2
jne 0x6a7277
cmp byte [ebp - 0x20], 3
mov byte [edi + 0xc], 2
jne 0x6a7297
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], ecx
push ecx
mov dword [ebp - 0x20], eax
call dword [eax]
add esp, 4
mov eax, dword [ebp - 0x20]
cmp dword [eax + 4], 0
je 0x6a72f9
cmp dword [eax + 8], 9
jae 0x6a72e4
mov eax, dword [ebp - 0x24]
jmp 0x6a72ea
movzx ecx, word [ebp - 0x2c]
movzx edx, byte [ebp - 0x2a]
mov eax, dword [ebp - 0x20]
mov word [edi + 0xd], cx
mov byte [edi + 0xf], dl
mov dword [edi], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 4], esi
mov dword [edi + 8], eax
mov byte [edi + 0xc], bl
cmp dword [ebp - 0x3c], 0
je 0x6a72ae
push dword [ebp - 0x34]
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x44c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x20], 0
mov bl, 2
call sub.kernel32.dll_GetLastError
mov esi, eax
mov edi, dword [ebp - 0x38]
cmp dword [ebp - 0x28], 0
jne 0x6a7224
jmp 0x6a7235
mov eax, dword [ebp - 0x24]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
push dword [ebp - 0x28]
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [ebp - 0x3c], 0
jne 0x6a729d
jmp 0x6a72ae
mov dword [ebp - 0x10], 2
mov ecx, str.internal_error:_entered_unreachable_codeC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinit_0.28.6_srcplatform_implwindowswindow_state.rs
mov edx, 0x28
push 0x8ca010
call fcn.0070a0f0
add esp, 4
jmp 0x6a7341
mov ecx, esi
push 0x8ca000
call fcn.0070a080
add esp, 4
ud2