Function at 0x465110
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x4c3ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4f2008]
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 dword [ebp - 0x20], edx
mov edi, ecx
mov eax, dword [ebp + 0x25c]
mov dword [ebp - 0x2c], eax
call fcn.00401970
mov esi, eax
cmp dword [esi + 0x10], 0
jne 0x46516b
xor al, al
jmp 0x465976
lea ecx, [ebp + 0x30]
call fcn.00401bd5
mov dword [ebp - 4], 0
mov eax, esi
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x465186
mov eax, dword [esi]
cmp word [eax], 0x40
jne 0x4651bc
mov eax, dword [esi + 0x10]
lea ecx, [ebp + 0x18]
dec eax
mov edx, edi
push eax
call fcn.00405bd0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x30]
push eax
call fcn.00402646
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.0040192c
jmp 0x46535c
mov ecx, edi
call fcn.00401970
lea ecx, [ebp + 0x30]
cmp ecx, eax
je 0x46535c
mov dword [ebp - 0x14], esi
cmp edx, 8
jb 0x4651db
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov ebx, dword [esi + 0x10]
lea ecx, [ebp + 0x30]
call fcn.00401970
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x18], eax
cmp ebx, eax
ja 0x465224
mov esi, edi
cmp eax, 8
jb 0x4651fb
mov esi, dword [edi]
push ebx
push dword [ebp - 0x14]
mov dword [edi + 0x10], ebx
push esi
call fcn.00401a12
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.00401a01
add esp, 0x14
jmp 0x46535c
lea ecx, [ebp + 0x30]
call fcn.00401b82
cmp ebx, eax
ja 0x465999
lea ecx, [ebp + 0x30]
call fcn.00401b82
lea ecx, [ebp + 0x30]
mov esi, eax
call fcn.00401970
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0x28], ecx
cmp ecx, esi
ja 0x465279
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x465279
lea eax, [ecx + edx]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004019ef
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x46528b
or ecx, 0xffffffff
jmp 0x465293
cmp ecx, 0x1000
jb 0x4652be
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.00495cb6
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x46599e
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4652cf
test ecx, ecx
je 0x4652cd
push ecx
call fcn.00495cb6
add esp, 4
jmp 0x4652cf
xor eax, eax
mov dword [ebp - 0x10], eax
push ebx
push dword [ebp - 0x14]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [ebp - 0x10]
push esi
call fcn.00401a2b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.00401a01
mov ecx, dword [ebp - 0x18]
add esp, 0x14
cmp ecx, 8
jb 0x46533c
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x46532b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46599e
mov eax, edx
push ecx
push eax
call fcn.00495ce6
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [edi], eax
jmp 0x46535c
push edi
call fcn.00401a5f
push eax
push 4
call fcn.00401880
mov esi, eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401a5f
add esp, 0x10
mov ecx, dword [eax]
mov dword [esi], ecx
push 0x208
lea eax, [ebp + 0x48]
push 0
push eax
call fcn.00497aa0
add esp, 0xc
lea eax, [ebp + 0x48]
lea ecx, [ebp + 0x30]
push 0x104
push eax
call fcn.00401921
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push eax
call edi
mov esi, eax
cmp esi, 0x104
jb 0x465574
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004963de
add esp, 4
lea ecx, [ebp + 0x30]
mov ebx, eax
mov dword [ebp - 0x14], ebx
push esi
push ebx
call fcn.00401921
push eax
call edi
push ebx
call fcn.00401a44
add esp, 4
lea ecx, [ebp + 0x30]
mov ebx, eax
call fcn.00401970
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x1c], eax
cmp ebx, eax
ja 0x46541e
mov esi, edi
cmp eax, 8
jb 0x4653ea
mov esi, dword [edi]
push ebx
push dword [ebp - 0x14]
mov dword [edi + 0x10], ebx
push esi
call fcn.00401a12
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.00401a01
add esp, 0x14
push dword [ebp - 0x14]
call fcn.004963d9
add esp, 4
jmp 0x465702
lea ecx, [ebp + 0x30]
call fcn.00401b82
cmp ebx, eax
ja 0x4659a3
lea ecx, [ebp + 0x30]
call fcn.00401b82
lea ecx, [ebp + 0x30]
mov esi, eax
call fcn.00401970
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0x28], ecx
cmp ecx, esi
ja 0x465473
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x465473
lea eax, [ecx + edx]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004019ef
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x465485
or ecx, 0xffffffff
jmp 0x46548d
cmp ecx, 0x1000
jb 0x4654b8
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.00495cb6
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x46599e
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4654c9
test ecx, ecx
je 0x4654c7
push ecx
call fcn.00495cb6
add esp, 4
jmp 0x4654c9
xor eax, eax
mov dword [ebp - 0x10], eax
push ebx
push dword [ebp - 0x14]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [ebp - 0x10]
push esi
call fcn.00401a2b
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.00401a01
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
cmp ecx, 8
jb 0x465544
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x465525
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46599e
mov eax, edx
push ecx
push eax
call fcn.00495ce6
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [edi], eax
push dword [ebp - 0x14]
call fcn.004963d9
add esp, 4
jmp 0x465702
push edi
call fcn.00401a5f
push eax
push 4
call fcn.00401880
mov esi, eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401a5f
add esp, 0x10
mov ecx, dword [eax]
push dword [ebp - 0x14]
mov dword [esi], ecx
call fcn.004963d9
add esp, 4
jmp 0x465702
lea eax, [ebp + 0x48]
push eax
call fcn.00401a44
add esp, 4
lea ecx, [ebp + 0x30]
mov ebx, eax
call fcn.00401970
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x24], eax
cmp ebx, eax
ja 0x4655c9
mov esi, edi
cmp eax, 8
jb 0x46559f
mov esi, dword [edi]
push ebx
lea eax, [ebp + 0x48]
mov dword [edi + 0x10], ebx
push eax
push esi
call fcn.00401a12
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.00401a01
add esp, 0x14
jmp 0x465702
lea ecx, [ebp + 0x30]
call fcn.00401b82
cmp ebx, eax
ja 0x4659a8
lea ecx, [ebp + 0x30]
call fcn.00401b82
lea ecx, [ebp + 0x30]
mov esi, eax
call fcn.00401970
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0x18], ecx
cmp ecx, esi
ja 0x46561e
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x46561e
lea eax, [ecx + edx]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004019ef
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x465630
or ecx, 0xffffffff
jmp 0x465638
cmp ecx, 0x1000
jb 0x465663
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.00495cb6
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x46599e
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x465674
test ecx, ecx
je 0x465672
push ecx
call fcn.00495cb6
add esp, 4
jmp 0x465674
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x48]
push ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [ebp - 0x10]
push eax
push esi
call fcn.00401a2b
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.00401a01
mov ecx, dword [ebp - 0x24]
add esp, 0x14
cmp ecx, 8
jb 0x4656e2
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4656d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46599e
mov eax, edx
push ecx
push eax
call fcn.00495ce6
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [edi], eax
jmp 0x465702
push edi
call fcn.00401a5f
push eax
push 4
call fcn.00401880
mov esi, eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401a5f
add esp, 0x10
mov ecx, dword [eax]
mov dword [esi], ecx
push 0x4ddb8c
lea ecx, [ebp]
call fcn.00401931
mov byte [ebp - 4], 2
lea eax, [ebp]
push ecx
push eax
lea ecx, [ebp + 0x30]
call fcn.004025de
mov edi, eax
cmp edi, 0xffffffff
je 0x4657ad
push edi
lea edx, [ebp + 0x30]
lea ecx, [ebp + 0x18]
call fcn.00405b60
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
push eax
call fcn.00402646
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.0040192c
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4657a6
lea ecx, [ebp + 0x30]
call fcn.00401970
lea ecx, [ebp]
mov esi, dword [eax + 0x10]
call fcn.00401970
lea edx, [ebp + 0x30]
lea ecx, [ebp + 0x18]
mov eax, dword [eax + 0x10]
sub esi, eax
sub esi, edi
push esi
call fcn.00405bd0
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x18]
call fcn.00401921
xor edx, edx
mov ecx, eax
call fcn.00405570
mov dword [ebx], eax
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.0040192c
mov bl, 1
jmp 0x465959
lea ecx, [ebp + 0x30]
call fcn.00401970
mov esi, dword [ebp - 0x20]
cmp esi, eax
je 0x465951
call fcn.00401970
mov dword [ebp - 0x10], eax
cmp dword [eax + 0x14], 8
jb 0x4657d3
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov ebx, dword [eax + 0x10]
mov ecx, esi
call fcn.00401970
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x24], eax
cmp ebx, eax
ja 0x46581b
mov esi, edi
cmp eax, 8
jb 0x4657f2
mov esi, dword [edi]
push ebx
push dword [ebp - 0x10]
mov dword [edi + 0x10], ebx
push esi
call fcn.00401a12
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.00401a01
add esp, 0x14
jmp 0x465951
mov ecx, esi
call fcn.00401b82
cmp ebx, eax
ja 0x4659ad
mov ecx, esi
call fcn.00401b82
mov ecx, dword [ebp - 0x20]
mov esi, eax
call fcn.00401970
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0x18], ecx
cmp ecx, esi
ja 0x46586e
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x46586e
lea eax, [ecx + edx]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004019ef
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x465880
or ecx, 0xffffffff
jmp 0x465888
cmp ecx, 0x1000
jb 0x4658b3
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.00495cb6
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x46599e
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4658c4
test ecx, ecx
je 0x4658c2
push ecx
call fcn.00495cb6
add esp, 4
jmp 0x4658c4
xor eax, eax
mov dword [ebp - 0x20], eax
push ebx
push dword [ebp - 0x10]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [ebp - 0x20]
push esi
call fcn.00401a2b
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.00401a01
mov ecx, dword [ebp - 0x24]
add esp, 0x14
cmp ecx, 8
jb 0x465931
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x465920
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46599e
mov eax, edx
push ecx
push eax
call fcn.00495ce6
mov eax, dword [ebp - 0x20]
add esp, 8
mov dword [edi], eax
jmp 0x465951
push edi
call fcn.00401a5f
push eax
push 4
call fcn.00401880
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call fcn.00401a5f
add esp, 0x10
mov ecx, dword [eax]
mov dword [esi], ecx
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.0040192c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.0040192c
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.00495ca5
lea esp, [ebp + 0x254]
pop ebp
ret
call fcn.00401b40
call fcn.00499d54
call fcn.00401b40
call fcn.00401b40
call fcn.00401b40
int3