Function at 0x45b800
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x448
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x46c990
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
lea esi, [ebp - 0x454]
mov dword fs:[0], ecx
mov ecx, esi
push eax
call fcn.0046a950
add esp, 4
cmp dword [ebp - 0x454], 0
je 0x45b8ac
cmp byte [ebp - 0x450], 3
jne 0x45b9c7
mov ecx, dword [ebp - 0x44c]
mov eax, dword [ecx]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x10], 0
push eax
call dword [ecx]
add esp, 4
mov esi, dword [ebp - 0x24]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x45b897
push dword [eax + 8]
push ecx
push dword [esi]
call fcn.00406c80
add esp, 0xc
push 4
push 0xc
push esi
call fcn.00406c80
add esp, 0xc
mov edi, dword [ebp + 8]
jmp 0x45b9c7
mov ecx, dword [ebp - 0x450]
test ecx, ecx
je 0x45b9c7
mov edx, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
push 0x400
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ebx, 0x200
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 2
cmp ebx, 0x201
jae 0x45b930
jmp 0x45b970
mov ebx, edi
jbe 0x45b9e3
cmp ebx, 0x201
jb 0x45b970
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
mov eax, ebx
sub eax, edx
sub ecx, edx
cmp ecx, eax
jae 0x45b95f
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], 3
lea ecx, [ebp - 0x38]
push eax
call fcn.0047f980
add esp, 4
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp - 0x2c]
mov esi, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
jmp 0x45b97b
lea edi, [ebp - 0x454]
mov esi, 0x200
mov dword [ebp - 0x28], edi
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
push ebx
push edi
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x45b9a1
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x45ba16
cmp edi, ebx
jne 0x45b920
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x45bacd
add ebx, ebx
cmp ebx, 0x201
jb 0x45b970
jmp 0x45b930
mov dword [edi], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x448
pop esi
pop edi
pop ebx
pop ebp
ret
cmp edi, esi
mov dword [ebp - 0x10], 3
ja 0x45baea
lea eax, [ebp - 0x54]
push edi
push dword [ebp - 0x28]
push eax
call fcn.004603d0
add esp, 0xc
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
mov bl, 1
mov ecx, dword [ebp - 0x34]
test ecx, ecx
jne 0x45ba27
jmp 0x45ba47
call dword [sym.imp.kernel32.dll_GetLastError]
xor edx, edx
xor ebx, ebx
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x45ba47
add ecx, ecx
je 0x45ba47
push 2
push ecx
push dword [ebp - 0x2c]
mov dword [ebp - 0x20], esi
mov edi, eax
mov esi, edx
call fcn.00406c80
mov edx, esi
mov esi, dword [ebp - 0x20]
mov eax, edi
add esp, 0xc
mov edi, dword [ebp + 8]
test bl, bl
je 0x45ba58
mov dword [edi + 4], eax
mov dword [edi], edx
mov dword [edi + 8], esi
jmp 0x45baa7
cmp dl, 3
mov dword [edi], 0
jne 0x45baa7
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], 2
push edx
mov dword [ebp - 0x20], eax
call dword [ecx]
add esp, 4
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x45ba97
push dword [eax + 8]
push ecx
push dword [edx]
mov esi, edx
call fcn.00406c80
mov edx, esi
add esp, 0xc
push 4
push 0xc
push edx
call fcn.00406c80
add esp, 0xc
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x45b9cd
add eax, eax
je 0x45b9cd
push 2
push eax
push dword [ebp - 0x24]
call fcn.00406c80
add esp, 0xc
jmp 0x45b9cd
mov dword [ebp - 0x10], 3
push 0x4b2aa0
push 0x28
push str.internal_error:_entered_unreachable_code_rustc_4b91a6ea7258a947e59c6522cd5898e7c0a6a88flibrary_alloc_src_vecmod.rs
call fcn.00480530
add esp, 0xc
jmp 0x45baf9
push 0x4b2ab0
push esi
push edi
call fcn.00480750
add esp, 0xc
ud2