Function at 0x41cc10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431aa8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43e0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea edi, [edx + 0x2c]
mov esi, str.dllurl
mov dword [ebp - 0x10], edi
call fcn.00418960
test eax, eax
je 0x41cc99
mov ecx, dword [eax + 0x18]
add ecx, 8
je 0x41cc99
lea eax, [ebp - 0x14]
push eax
call fcn.004082c0
add esp, 4
lea edi, [ebx + 0x18]
mov dword [ebp - 4], 0
call fcn.004048a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cca1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41cca1
lea esi, [ebx + 0x18]
call fcn.00404e60
mov edi, dword [ebp - 0x10]
mov esi, str.dllmd5
call fcn.00418960
test eax, eax
je 0x41ccfd
mov ecx, dword [eax + 0x18]
add ecx, 8
je 0x41ccfd
lea edx, [ebp - 0x14]
push edx
call fcn.004082c0
add esp, 4
lea edi, [ebx + 0x1c]
mov dword [ebp - 4], 1
call fcn.004048a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cd05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41cd05
lea esi, [ebx + 0x1c]
call fcn.00404e60
mov edi, dword [ebp - 0x10]
mov esi, str.OnlyAdmin
call fcn.00418960
test eax, eax
je 0x41cd2c
mov eax, dword [eax + 0x18]
add eax, 8
je 0x41cd2c
push eax
call fcn.0041fe7d
add esp, 4
mov dword [ebx + 0x2c], eax
jmp 0x41cd33
mov dword [ebx + 0x2c], 0
mov esi, str.filename
call fcn.00418960
test eax, eax
je 0x41cd8c
mov ecx, dword [eax + 0x18]
add ecx, 8
je 0x41cd8c
lea edx, [ebp - 0x14]
push edx
call fcn.004082c0
add esp, 4
lea edi, [ebx + 0x20]
mov dword [ebp - 4], 2
call fcn.004048a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cd94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41cd94
lea esi, [ebx + 0x20]
call fcn.00404e60
mov edi, dword [ebp - 0x10]
mov esi, str.prename
call fcn.00418960
test eax, eax
je 0x41cdf0
mov ecx, dword [eax + 0x18]
add ecx, 8
je 0x41cdf0
lea edx, [ebp - 0x14]
push edx
call fcn.004082c0
add esp, 4
lea edi, [ebx + 0x24]
mov dword [ebp - 4], 3
call fcn.004048a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cdf8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41cdf8
lea esi, [ebx + 0x24]
call fcn.00404e60
mov edi, dword [ebp - 0x10]
mov esi, str.filepath
call fcn.00418960
test eax, eax
je 0x41ced7
mov ecx, dword [eax + 0x18]
add ecx, 8
je 0x41ced7
cmp byte [ecx], 0
je 0x41ced7
lea edx, [ebp - 0x10]
push edx
call fcn.004082c0
add esp, 4
mov edi, eax
mov dword [ebp - 4], 4
mov eax, dword [ebx + 0x28]
lea esi, [ebx + 0x28]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
mov ebx, 0x104
sub eax, ebx
or eax, ecx
jge 0x41ce5c
mov eax, ebx
mov ecx, esi
call fcn.004055c0
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jge 0x41ce6d
push 0x80070057
call fcn.00401540
mov dword [eax - 0xc], ebx
mov ecx, dword [esi]
xor edx, edx
push ebx
mov word [ecx + 0x208], dx
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ceac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x41cec3
push ecx
push eax
call fcn.0041f064
add esp, 8
test eax, eax
js 0x41ce63
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x41ce63
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x41cf35
mov ecx, dword [ebx + 0x28]
cmp dword [ecx - 0xc], 0
mov esi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
je 0x41cf35
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x41cf10
cmp dword [ecx - 8], 0
jge 0x41ceff
push 0x80070057
call fcn.00401540
mov dword [ecx - 0xc], 0
mov eax, dword [ebx + 0x28]
xor ecx, ecx
mov word [eax], cx
jmp 0x41cf35
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41cf26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [ebx + 0x28], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret