Function at 0x469240
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4591
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4f2008]
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 ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, esi
push 0
mov dword [ebp - 0x4c], ebx
push 0x25
mov dword [ebp - 0x3c], 0
call fcn.004025ba
push esi
cmp eax, 0xffffffff
jne 0x4692a6
mov ecx, ebx
call fcn.00402693
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 1
jmp 0x469500
lea ecx, [ebp - 0x28]
call fcn.00402693
mov dword [ebp - 4], 1
mov ecx, esi
push 0
push 0
call fcn.00401921
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
jne 0x4692da
push esi
mov ecx, ebx
call fcn.00402693
jmp 0x4694ed
xor ecx, ecx
lea eax, [edi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004963de
add esp, 4
mov dword [ebp - 0x38], eax
lea edx, [edi + 1]
mov ecx, esi
push edx
push eax
call fcn.00401921
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, eax
test ecx, ecx
je 0x4694d7
cmp ecx, edi
ja 0x4694d7
mov eax, dword [ebp - 0x38]
xor edx, edx
push eax
mov word [eax + ecx*2], dx
call fcn.00401a44
add esp, 4
lea ecx, [ebp - 0x28]
mov esi, eax
mov dword [ebp - 0x34], esi
call fcn.00401970
mov edi, eax
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x48], ecx
cmp esi, ecx
ja 0x469382
mov dword [ebp - 0x2c], edi
cmp ecx, 8
jb 0x469356
mov eax, dword [edi]
mov dword [ebp - 0x2c], eax
push esi
push dword [ebp - 0x38]
mov dword [edi + 0x10], esi
push eax
call fcn.00401a12
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
mov eax, dword [ebp - 0x2c]
lea eax, [eax + esi*2]
push eax
call fcn.00401a01
add esp, 0x14
jmp 0x4694d7
lea ecx, [ebp - 0x28]
call fcn.00401b82
cmp esi, eax
ja 0x469520
lea ecx, [ebp - 0x28]
call fcn.00401b82
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], eax
call fcn.00401970
mov edx, dword [ebp - 0x30]
mov ecx, esi
or ecx, 7
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x44], ecx
cmp ecx, edx
ja 0x4693eb
mov ecx, dword [eax + 0x14]
mov eax, edx
mov esi, dword [ebp - 0x2c]
shr ecx, 1
sub eax, ecx
cmp dword [esi + 0x14], eax
mov esi, dword [ebp - 0x34]
ja 0x4693e8
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x14]
add eax, ecx
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004019ef
add esp, 8
mov edx, dword [eax]
mov dword [ebp - 0x30], edx
lea eax, [edx + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x4693fd
or ecx, 0xffffffff
jmp 0x469405
cmp ecx, 0x1000
jb 0x469431
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.00495cb6
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x469525
mov edx, dword [ebp - 0x30]
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x469445
test ecx, ecx
je 0x469443
push ecx
call fcn.00495cb6
mov edx, dword [ebp - 0x30]
add esp, 4
jmp 0x469445
xor eax, eax
push dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x38]
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], edx
mov esi, dword [ebp - 0x2c]
push esi
call fcn.00401a2b
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
mov eax, dword [ebp - 0x34]
lea eax, [esi + eax*2]
push eax
call fcn.00401a01
mov ecx, dword [ebp - 0x48]
add esp, 0x14
cmp ecx, 8
jb 0x4694b7
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4694a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x469525
mov eax, edx
push ecx
push eax
call fcn.00495ce6
mov eax, dword [ebp - 0x2c]
add esp, 8
mov dword [edi], eax
jmp 0x4694d7
push edi
call fcn.00401a5f
push eax
push 4
call fcn.00401880
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401a5f
add esp, 0x10
mov ecx, dword [eax]
mov dword [esi], ecx
push dword [ebp - 0x38]
call fcn.004963d9
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.0040266f
mov dword [ebp - 0x3c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040192c
mov eax, ebx
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.00495ca5
mov esp, ebp
pop ebp
ret 8
call fcn.00401b40
call fcn.00499d54
int3