Function at 0x46d080
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x4c8278
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4fb068]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov eax, dword [ebp + 0x25c]
mov dword [ebp - 0x10], eax
call fcn.00401ec0
test eax, eax
jne 0x46d0d6
xor al, al
jmp 0x46d2d1
lea ecx, [ebp + 0x30]
call fcn.004077f0
mov dword [ebp - 4], 0
mov ecx, edi
call fcn.00401e50
mov esi, eax
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x46d0f8
mov eax, dword [esi]
cmp word [eax], 0x40
mov ecx, edi
jne 0x46d12f
call fcn.00401ec0
dec eax
lea ecx, [ebp + 0x18]
push eax
mov edx, edi
call fcn.00419070
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x30]
push eax
call fcn.00407770
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.00401df0
jmp 0x46d150
call fcn.00401e50
lea ecx, [ebp + 0x30]
cmp ecx, eax
je 0x46d150
mov eax, esi
cmp edx, 8
jb 0x46d144
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp + 0x30]
push eax
call fcn.00401ed0
push 0x208
lea eax, [ebp + 0x48]
push 0
push eax
call fcn.00499e80
add esp, 0xc
lea eax, [ebp + 0x48]
lea ecx, [ebp + 0x30]
push 0x104
push eax
call fcn.00401de0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
cmp edi, 0x104
jb 0x46d1cf
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004974ed
add esp, 4
lea ecx, [ebp + 0x30]
mov esi, eax
push edi
push esi
call fcn.00401de0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call fcn.004020d0
add esp, 4
lea ecx, [ebp + 0x30]
push eax
push esi
call fcn.00401ed0
push esi
call fcn.0049756a
add esp, 4
jmp 0x46d1e8
lea eax, [ebp + 0x48]
push eax
call fcn.004020d0
add esp, 4
lea ecx, [ebp + 0x30]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.00401ed0
push 0x4e19e8
lea ecx, [ebp]
call fcn.00401e00
mov byte [ebp - 4], 2
lea eax, [ebp]
push ecx
push eax
lea ecx, [ebp + 0x30]
call fcn.00413373
mov esi, eax
cmp esi, 0xffffffff
je 0x46d287
push esi
lea edx, [ebp + 0x30]
lea ecx, [ebp + 0x18]
call fcn.00419000
add esp, 4
mov byte [ebp - 4], 3
mov ecx, ebx
push eax
call fcn.00407770
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.00401df0
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x46d283
lea ecx, [ebp + 0x30]
call fcn.00401ec0
mov edx, eax
lea ecx, [ebp]
sub edx, esi
call fcn.00401ec0
sub edx, eax
lea ecx, [ebp + 0x18]
push edx
lea edx, [ebp + 0x30]
call fcn.00419070
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x18]
call fcn.00401de0
xor edx, edx
mov ecx, eax
call fcn.00418990
mov dword [edi], eax
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.00401df0
mov bl, 1
jmp 0x46d2b4
lea ecx, [ebp + 0x30]
call fcn.00401e50
cmp ebx, eax
je 0x46d2ad
call fcn.00401e50
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x46d2a2
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.00401ed0
cmp dword [ebp - 0x10], 0
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401df0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.00401df0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.00496c8f
lea esp, [ebp + 0x254]
pop ebp
ret