Function at 0x466260
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540a0c
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x59e074]
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 eax, dword [ebp + 8]
lea ecx, [ebp - 0x234]
mov ebx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x254], ebx
call fcn.004056c0
mov dword [ebp - 4], 0
mov edx, 0x5655dc
lea ecx, [ebp - 0x234]
call fcn.0040eda0
mov edx, 0x5655dc
lea ecx, [ebp - 0x234]
call fcn.0040ee20
lea ecx, [ebp - 0x234]
call fcn.004045b0
test al, al
je 0x4662e3
xor bl, bl
jmp 0x4665c2
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0050c400
add esp, 0xc
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x234]
push 0x104
push eax
call fcn.004045c0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x46633d
lea eax, [ebp - 0x218]
push eax
call fcn.00404920
add esp, 4
lea ecx, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00404720
lea ecx, [ebp - 0x234]
call fcn.0040dfd0
lea ecx, [ebp - 0x234]
test al, al
je 0x46637c
call fcn.00404680
cmp ebx, eax
je 0x466375
call fcn.00404680
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x46636a
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.00404720
mov bl, 1
jmp 0x4665c2
call fcn.00404680
mov edi, eax
mov dword [ebp - 0x250], edi
cmp dword [edi + 0x14], 8
jb 0x466397
mov eax, dword [edi]
mov dword [ebp - 0x250], eax
mov esi, dword [edi + 0x10]
mov dword [ebp - 0x21c], 0x22
test esi, esi
je 0x466461
lea ecx, [ebp - 0x21c]
mov edx, esi
push ecx
mov ecx, eax
call fcn.00406200
add esp, 4
test eax, eax
je 0x466461
sub eax, dword [ebp - 0x250]
cmp eax, 2
jae 0x466461
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x250], edi
jb 0x4663ec
mov eax, dword [edi]
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x21c], 0x22
cmp esi, 1
jbe 0x466461
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [esi - 1]
lea ecx, [eax + 2]
call fcn.00406200
add esp, 4
test eax, eax
je 0x466461
sub eax, dword [ebp - 0x250]
sar eax, 1
cmp eax, 0xffffffff
je 0x466461
dec eax
lea ecx, [ebp - 0x234]
push eax
push 1
lea eax, [ebp - 0x26c]
push eax
call fcn.0040da70
mov byte [ebp - 4], 1
mov ecx, ebx
push eax
call fcn.004058e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x26c]
call fcn.00404600
mov ecx, ebx
call fcn.0040dfd0
test al, al
jne 0x466375
lea ecx, [ebp - 0x24c]
xor esi, esi
call fcn.00404660
mov byte [ebp - 4], 2
mov dword [ebp - 0x21c], 0x20
nop dword [eax]
cmp dword [edi + 0x14], 8
lea ebx, [esi + 1]
mov eax, edi
mov dword [ebp - 0x250], edi
jb 0x466499
mov eax, dword [edi]
mov dword [ebp - 0x250], eax
mov edx, dword [edi + 0x10]
cmp ebx, edx
jae 0x4665b1
lea ecx, [ebp - 0x21c]
sub edx, ebx
push ecx
lea ecx, [eax + ebx*2]
call fcn.00406200
mov esi, eax
add esp, 4
test esi, esi
je 0x4665b1
sub esi, dword [ebp - 0x250]
sar esi, 1
cmp esi, 0xffffffff
je 0x4665b1
cmp esi, ebx
je 0x466480
push esi
push 0
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x234]
call fcn.0040da70
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24c]
push eax
call fcn.004058e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x26c]
call fcn.00404600
lea ecx, [ebp - 0x24c]
call fcn.0040cd40
test al, al
jne 0x46657e
push 0x565654
call fcn.00404920
add esp, 4
lea ecx, [ebp - 0x24c]
push eax
push 0x565654
call fcn.00404be0
lea ecx, [ebp - 0x24c]
call fcn.0040cd40
test al, al
je 0x466480
lea ecx, [ebp - 0x24c]
call fcn.00404680
mov esi, dword [ebp - 0x254]
cmp esi, eax
je 0x46657a
call fcn.00404680
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x46656f
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00404720
mov bl, 1
jmp 0x4665b3
lea ecx, [ebp - 0x24c]
call fcn.00404680
mov esi, dword [ebp - 0x254]
cmp esi, eax
je 0x46657a
call fcn.00404680
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4665a2
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00404720
mov bl, 1
jmp 0x4665b3
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.00404600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.00404600
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 - 0x10]
xor ecx, ebp
call fcn.00509af6
mov esp, ebp
pop ebp
ret 8