Function at 0x46bdf0
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x244]
sub esp, 0x244
push 0xffffffffffffffff
push 0x525aa1
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x57f578]
xor eax, ebp
mov dword [ebp + 0x240], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x24c]
lea ecx, [ebp + 0x20]
mov ebx, dword [ebp + 0x250]
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0
call fcn.00408fd0
mov dword [ebp - 4], 0
lea eax, [ebp + 0x20]
push 0x549418
push eax
call fcn.0040d250
lea eax, [ebp + 0x20]
push 0x549418
push eax
call fcn.0040d2d0
add esp, 0x10
lea ecx, [ebp + 0x20]
call fcn.00408e80
test al, al
je 0x46be81
xor bl, bl
jmp 0x46c0fd
push 0x208
lea eax, [ebp + 0x38]
push 0
push eax
call fcn.004e8f30
add esp, 0xc
lea eax, [ebp + 0x38]
lea ecx, [ebp + 0x20]
push 0x104
push eax
call fcn.00408e90
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x46bec9
lea eax, [ebp + 0x38]
push eax
call fcn.00409590
add esp, 4
lea ecx, [ebp + 0x20]
push eax
lea eax, [ebp + 0x38]
push eax
call fcn.004092c0
lea eax, [ebp + 0x20]
push eax
call fcn.004244d0
add esp, 4
test al, al
je 0x46bf06
lea ecx, [ebp + 0x20]
call fcn.00409140
cmp ebx, eax
je 0x46beff
call fcn.00409140
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x46bef4
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.004092c0
mov bl, 1
jmp 0x46c0fd
push 0
push ecx
lea ecx, [ebp + 0x20]
call fcn.0046c8d0
test eax, eax
jne 0x46bf5a
push 1
push ecx
lea ecx, [ebp + 0x20]
call fcn.0046c8d0
cmp eax, 0xffffffff
je 0x46bf5a
dec eax
lea ecx, [ebp + 0x20]
push eax
push 1
lea eax, [ebp - 0x30]
push eax
call fcn.0040da20
mov byte [ebp - 4], 1
mov ecx, ebx
push eax
call fcn.00408f30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00408080
push ebx
call fcn.004244d0
add esp, 4
test al, al
jne 0x46beff
lea ecx, [ebp]
xor esi, esi
call fcn.00408fb0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x1c], 0x20
call fcn.00409140
mov edi, eax
nop dword [eax]
cmp dword [edi + 0x14], 8
lea ebx, [esi + 1]
mov ecx, edi
mov dword [ebp - 0x10], edi
jb 0x46bf93
mov ecx, dword [edi]
mov dword [ebp - 0x10], ecx
mov eax, dword [edi + 0x10]
cmp ebx, eax
jae 0x46c0ef
lea edx, [ebp + 0x1c]
sub eax, ebx
push edx
push eax
lea eax, [ecx + ebx*2]
push eax
call fcn.00409f80
mov esi, eax
add esp, 0xc
test esi, esi
je 0x46c0ef
sub esi, dword [ebp - 0x10]
sar esi, 1
cmp esi, 0xffffffff
je 0x46c0ef
cmp esi, ebx
je 0x46bf80
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.00409230
lea ecx, [ebp - 0x30]
call fcn.00409140
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.00409800
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], esi
push eax
call fcn.00409830
add esp, 0x10
cmp dword [edi + 0x14], 8
mov ecx, dword [eax]
mov eax, edi
jb 0x46c025
mov eax, dword [edi]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.004092c0
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x30]
or ebx, 1
lea ecx, [ebp]
push eax
mov dword [ebp - 0x14], ebx
call fcn.00408f30
and ebx, 0xfffffffe
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00408080
lea eax, [ebp]
push eax
call fcn.0040f460
add esp, 4
test al, al
jne 0x46c0c2
push 0x54fb84
call fcn.00409590
add esp, 4
lea ecx, [ebp]
push eax
push 0x54fb84
call fcn.004096f0
lea eax, [ebp]
push eax
call fcn.0040f460
add esp, 4
test al, al
je 0x46bf80
lea ecx, [ebp]
call fcn.00409140
mov esi, dword [ebp - 0x18]
cmp esi, eax
je 0x46c0be
call fcn.00409140
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x46c0b3
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.004092c0
mov bl, 1
jmp 0x46c0f1
lea ecx, [ebp]
call fcn.00409140
mov esi, dword [ebp - 0x18]
cmp esi, eax
je 0x46c0be
call fcn.00409140
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x46c0e0
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.004092c0
mov bl, 1
jmp 0x46c0f1
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00408080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00408080
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 + 0x240]
xor ecx, ebp
call fcn.004e679a
lea esp, [ebp + 0x244]
pop ebp
ret 8