Function at 0x460980
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x50d4f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
push ebx
mov ebx, ecx
push ebp
xor ebp, ebp
mov eax, dword [ebx + 0x1358]
push edi
dec eax
mov dword [esp + 0x18], ebx
js 0x460cbb
mov ecx, dword [ebx + 0x1354]
mov eax, dword [ecx + ebp*4]
test eax, eax
je 0x460cbb
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x460cab
mov ecx, dword [esp + 0x260]
mov edi, 1
test ecx, ecx
je 0x460c95
add eax, 4
lea ecx, [esp + 0xc]
push eax
call fcn.004e1b94
push edi
push 0x22
lea ecx, [esp + 0x18]
mov dword [esp + 0x25c], 0
call fcn.004d689e
lea edx, [esp + 0x38]
push edi
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x25c], 1
call fcn.004d6f0d
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
push ecx
push edx
call fcn.004bdb15
add esp, 8
lea ecx, [esp + 0x38]
test eax, eax
sete bl
call fcn.004e1e27
lea ecx, [esp + 0x10]
mov byte [esp + 0x254], 0
call fcn.004e1e27
test bl, bl
je 0x460a83
lea eax, [esp + 0x40]
push edi
push eax
lea ecx, [esp + 0x14]
call fcn.004d6dd8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x258], 2
call fcn.004e1f6e
lea ecx, [esp + 0x40]
mov byte [esp + 0x254], 0
call fcn.004e1e27
push 1
push 0x22
lea ecx, [esp + 0x1c]
call fcn.004d689e
lea ecx, [esp + 0x28]
push 1
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x25c], 3
call fcn.004d6e91
mov edx, dword [esp + 0x14]
mov eax, dword [eax]
push edx
push eax
call fcn.004bdb15
add esp, 8
lea ecx, [esp + 0x28]
test eax, eax
sete bl
call fcn.004e1e27
lea ecx, [esp + 0x14]
mov byte [esp + 0x254], 0
call fcn.004e1e27
test bl, bl
je 0x460b15
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x1c]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0xc]
dec eax
push eax
push edx
call fcn.004d6f0d
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x258], 4
call fcn.004e1f6e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x254], 0
call fcn.004e1e27
lea eax, [esp + 0x30]
push 3
push eax
lea ecx, [esp + 0x14]
call fcn.004d6f0d
mov ecx, dword [eax]
push 0x5629f4
push ecx
call fcn.004bdb15
add esp, 8
lea ecx, [esp + 0x30]
test eax, eax
sete bl
call fcn.004e1e27
test bl, bl
je 0x460ba0
lea edx, [esp + 0x24]
push edx
call fcn.004ab6d0
add esp, 4
lea ecx, [esp + 0xc]
lea edx, [esp + 0x20]
push ecx
push eax
push edx
mov byte [esp + 0x260], 5
call fcn.004e2066
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x258], 6
call fcn.004e1f6e
lea ecx, [esp + 0x20]
mov byte [esp + 0x254], 5
call fcn.004e1e27
lea ecx, [esp + 0x24]
mov byte [esp + 0x254], 0
call fcn.004e1e27
mov eax, dword [esp + 0xc]
cmp word [eax], 0x25
jne 0x460bc9
lea ecx, [esp + 0x44]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [esp + 0x44]
lea ecx, [esp + 0xc]
push edx
call fcn.004e1fbe
lea eax, [esp + 0x2c]
push 2
push eax
lea ecx, [esp + 0x14]
call fcn.004d6f0d
mov ecx, dword [eax]
push 0x55c42c
push ecx
call fcn.004bdb15
add esp, 8
lea ecx, [esp + 0x2c]
test eax, eax
sete bl
call fcn.004e1e27
test bl, bl
je 0x460c65
lea edx, [esp + 0x34]
push 2
push edx
lea ecx, [esp + 0x14]
call fcn.004d6dd8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x258], 7
call fcn.004e1f6e
lea ecx, [esp + 0x34]
mov byte [esp + 0x254], 0
call fcn.004e1e27
lea eax, [esp + 0xc]
lea ecx, [esp + 0x3c]
push eax
push 0x5762b0
push ecx
call fcn.004e2066
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x258], 8
call fcn.004e1f6e
lea ecx, [esp + 0x3c]
mov byte [esp + 0x254], 0
call fcn.004e1e27
lea edx, [esp + 0xc]
push edx
call fcn.00419720
add esp, 4
cmp eax, 1
je 0x460c79
xor edi, edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x254], 0xffffffff
call fcn.004e1e27
mov ebx, dword [esp + 0x18]
test edi, edi
je 0x460cab
mov eax, dword [esp + 0x25c]
lea ecx, [ebp + 0xe00]
push eax
push ecx
mov ecx, ebx
call fcn.0045c340
mov edx, dword [ebx + 0x1358]
inc ebp
dec edx
cmp ebp, edx
jle 0x4609b3
mov ecx, dword [esp + 0x24c]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24c
ret 8