Function at 0x461a80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x230], ecx
push edi
mov ecx, esi
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], 1
call fcn.004392b0
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
xor edi, edi
test ecx, ecx
jg 0x461af6
mov eax, dword [ebp - 0x228]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x224]
test edi, edi
jl 0x461f1f
cmp edi, ecx
jg 0x461f1f
movzx edx, word [eax + edi*2]
cmp dx, 0x25
jne 0x461ec0
lea edx, [edi + 1]
mov dword [ebp - 0x210], edx
test edx, edx
jl 0x461b45
cmp edx, ecx
jge 0x461b45
lea edx, [eax + edx*2]
push 0x25
push edx
call fcn.0051dd42
add esp, 8
test eax, eax
je 0x461b3f
sub eax, dword [ebx]
sar eax, 1
test eax, eax
jge 0x461bb3
mov edx, dword [ebp - 0x210]
mov eax, dword [ebx]
cmp edi, dword [eax - 0xc]
jg 0x461f1f
movzx eax, word [eax + edi*2]
mov dword [ebp - 0x218], eax
mov eax, dword [esi]
mov ebx, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebx + 1]
sub eax, edi
or ecx, eax
jge 0x461b81
push edi
mov ecx, esi
call fcn.0043a120
mov edx, dword [ebp - 0x210]
mov ecx, dword [esi]
mov ax, word [ebp - 0x218]
mov word [ecx + ebx*2], ax
test edi, edi
jl 0x461f1f
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x461f1f
mov dword [eax - 0xc], edi
mov ecx, dword [esi]
xor eax, eax
mov word [ecx + edi*2], ax
mov edi, edx
jmp 0x461e96
mov ecx, dword [ebp - 0x210]
sub eax, edi
mov dword [ebp - 0x218], eax
dec eax
push eax
push ecx
lea edx, [ebp - 0x234]
push edx
mov ecx, ebx
call fcn.00449720
mov ebx, eax
mov eax, dword [ebx]
mov esi, dword [eax - 0xc]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x461bf2
push esi
mov ecx, ebx
call fcn.0043a120
mov ecx, dword [ebx]
lea eax, [esi + 1]
push eax
push ecx
call fcn.0051e26d
add esp, 8
test esi, esi
jl 0x461f1f
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x461f1f
mov dword [eax - 0xc], esi
mov edx, dword [ebx]
xor eax, eax
mov word [edx + esi*2], ax
mov ebx, dword [ebx]
sub ebx, 0x10
push ebx
call fcn.0041eae0
mov ebx, eax
mov eax, dword [ebp - 0x234]
add ebx, 0x10
add eax, 0xfffffff0
add esp, 4
mov dword [ebp - 0x210], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x461c5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x230]
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x258]
push edx
mov ecx, esi
call fcn.0044b3c0
mov ecx, dword [eax]
mov edx, dword [esi + 0x18]
mov eax, dword [eax + 4]
mov esi, dword [esi]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x244], edx
test ecx, ecx
je 0x461c99
cmp ecx, esi
je 0x461ca4
call fcn.0051f89a
mov ecx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x244]
cmp dword [ebp - 0x21c], eax
je 0x461cf6
test ecx, ecx
jne 0x461cf2
call fcn.0051f89a
xor ecx, ecx
mov edx, dword [ebp - 0x21c]
cmp edx, dword [ecx + 0x18]
jne 0x461ccd
call fcn.0051f89a
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, dword [ebp - 0x214]
push eax
call fcn.0044a1a0
mov edx, dword [ebx - 0xc]
lea edi, [edi + edx + 2]
jmp 0x461e74
mov ecx, dword [ecx]
jmp 0x461cbd
mov esi, dword [ebp - 0x22c]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x250]
push ecx
mov ecx, esi
call fcn.0044b3c0
mov ebx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x18]
mov esi, dword [esi]
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x23c], eax
test ebx, ebx
je 0x461d2f
cmp ebx, esi
je 0x461d34
call fcn.0051f89a
mov ecx, dword [ebp - 0x23c]
cmp dword [ebp - 0x21c], ecx
je 0x461d8a
test ebx, ebx
jne 0x461d86
call fcn.0051f89a
mov edx, dword [ebp - 0x21c]
cmp edx, dword [ebx + 0x18]
jne 0x461d5b
call fcn.0051f89a
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, dword [ebp - 0x214]
push eax
call fcn.0044a1a0
mov edx, dword [ebp - 0x210]
mov eax, dword [edx - 0xc]
lea edi, [edi + eax + 2]
jmp 0x461e6e
mov ebx, dword [ebx]
jmp 0x461d4b
mov ecx, dword [ebp - 0x218]
inc ecx
push ecx
mov ecx, dword [ebp - 0x224]
push edi
lea edx, [ebp - 0x238]
push edx
call fcn.00449720
mov ecx, eax
call fcn.0044f1c0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0041eae0
mov esi, eax
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
add esp, 4
add esi, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x461de1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x104
ja 0x461e35
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x461e04
mov ecx, dword [ebp - 0x214]
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
call fcn.0044a1a0
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax - 0xc]
lea edi, [edi + ecx + 2]
jmp 0x461e52
mov edx, dword [esi - 0xc]
mov ecx, dword [ebp - 0x214]
push edx
push esi
mov dword [ebp - 0x228], 0
call fcn.0044a1a0
add edi, dword [esi - 0xc]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x461e6e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ebx, dword [ebp - 0x210]
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x461e90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x214]
mov eax, dword [ebp - 0x224]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp edi, ecx
jl 0x461af0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
movzx ecx, dx
mov dword [ebp - 0x210], ecx
mov ecx, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
lea ebx, [ecx + 1]
sub eax, ebx
or edx, eax
mov dword [ebp - 0x218], ecx
jge 0x461ef6
push ebx
mov ecx, esi
call fcn.0043a120
mov ecx, dword [ebp - 0x218]
mov edx, dword [esi]
mov ax, word [ebp - 0x210]
mov word [edx + ecx*2], ax
test ebx, ebx
jl 0x461f1f
mov eax, dword [esi]
cmp ebx, dword [eax - 8]
jg 0x461f1f
mov dword [eax - 0xc], ebx
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + ebx*2], dx
inc edi
jmp 0x461e96
push 0x80070057
call fcn.00414840
int3