Function at 0x419580
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e468
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43b050]
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.00415260
test eax, eax
je 0x419609
mov ecx, dword [eax + 0x18]
add ecx, 8
je 0x419609
lea eax, [ebp - 0x14]
push eax
call fcn.004049c0
add esp, 4
lea edi, [ebx + 0x18]
mov dword [ebp - 4], 0
call fcn.004032d0
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 0x419611
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x419611
lea esi, [ebx + 0x18]
call fcn.00403830
mov edi, dword [ebp - 0x10]
mov esi, str.dllmd5
call fcn.00415260
test eax, eax
je 0x41966d
mov ecx, dword [eax + 0x18]
add ecx, 8
je 0x41966d
lea edx, [ebp - 0x14]
push edx
call fcn.004049c0
add esp, 4
lea edi, [ebx + 0x1c]
mov dword [ebp - 4], 1
call fcn.004032d0
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 0x419675
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x419675
lea esi, [ebx + 0x1c]
call fcn.00403830
mov edi, dword [ebp - 0x10]
mov esi, str.OnlyAdmin
call fcn.00415260
test eax, eax
je 0x41969c
mov eax, dword [eax + 0x18]
add eax, 8
je 0x41969c
push eax
call fcn.0041c787
add esp, 4
mov dword [ebx + 0x2c], eax
jmp 0x4196a3
mov dword [ebx + 0x2c], 0
mov esi, str.filename
call fcn.00415260
test eax, eax
je 0x4196fc
mov ecx, dword [eax + 0x18]
add ecx, 8
je 0x4196fc
lea edx, [ebp - 0x14]
push edx
call fcn.004049c0
add esp, 4
lea edi, [ebx + 0x20]
mov dword [ebp - 4], 2
call fcn.004032d0
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 0x419704
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x419704
lea esi, [ebx + 0x20]
call fcn.00403830
mov edi, dword [ebp - 0x10]
mov esi, str.prename
call fcn.00415260
test eax, eax
je 0x419760
mov ecx, dword [eax + 0x18]
add ecx, 8
je 0x419760
lea edx, [ebp - 0x14]
push edx
call fcn.004049c0
add esp, 4
lea edi, [ebx + 0x24]
mov dword [ebp - 4], 3
call fcn.004032d0
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 0x419768
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x419768
lea esi, [ebx + 0x24]
call fcn.00403830
mov edi, dword [ebp - 0x10]
mov esi, str.filepath
call fcn.00415260
test eax, eax
je 0x419847
mov ecx, dword [eax + 0x18]
add ecx, 8
je 0x419847
cmp byte [ecx], 0
je 0x419847
lea edx, [ebp - 0x10]
push edx
call fcn.004049c0
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 0x4197cc
mov eax, ebx
mov ecx, esi
call fcn.00403e20
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jge 0x4197dd
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 0x41981c
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 0x419833
push ecx
push eax
call fcn.0041b8e7
add esp, 8
test eax, eax
js 0x4197d3
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x4197d3
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x4198a5
mov ecx, dword [ebx + 0x28]
cmp dword [ecx - 0xc], 0
mov esi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
je 0x4198a5
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x419880
cmp dword [ecx - 8], 0
jge 0x41986f
push 0x80070057
call fcn.00401540
mov dword [ecx - 0xc], 0
mov eax, dword [ebx + 0x28]
xor ecx, ecx
mov word [eax], cx
jmp 0x4198a5
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x419896
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