Function at 0x464070
Capabilities:
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c78e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4640b8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.filepath
mov ecx, ebx
call fcn.004eb580
test eax, eax
je 0x4640d0
lea ecx, [eax + 0x10]
call fcn.004ea3b0
mov edx, eax
lea ecx, [ebp - 0x10]
call fcn.0050cba0
push ecx
mov dword [ebp - 4], 0
mov esi, esp
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov dword [ebp - 0x18], esp
call fcn.0040c3c0
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 1
call fcn.00409c60
add esp, 4
mov byte [ebp - 4], 0
mov ecx, eax
call fcn.0045adc0
mov edi, eax
or esi, 0xffffffff
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x4641a0
cmp dword [ebp + 0xc], eax
jne 0x4641b2
push 0x5bc114
mov ecx, ebx
call fcn.004337e0
push ecx
mov ecx, dword [ebp - 0x10]
add eax, 0x3f000000
add ecx, 0xfffffff0
mov dword [ebp + 0xc], eax
mov esi, esp
call fcn.0040c3c0
add eax, 0x10
mov dword [esi], eax
mov esi, dword [ebp - 0x20]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
test eax, eax
jne 0x4641b2
push 0x7c
call fcn.00551c81
add esp, 4
test eax, eax
je 0x464179
mov ecx, eax
call fcn.0044cfa0
mov edi, eax
mov dword [ebp - 0x18], eax
jmp 0x46417e
xor edi, edi
mov dword [ebp - 0x18], edi
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x20], eax
movzx eax, byte [0x64185b]
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 4]
call fcn.0045c380
or esi, 0xffffffff
push str.name
mov ecx, ebx
call fcn.004eb580
test eax, eax
jne 0x4641b9
jmp 0x4641c1
xor edi, edi
jmp 0x464750
lea ecx, [eax + 0x10]
call fcn.004ea3b0
mov edx, eax
lea ecx, [ebp + 0xc]
call fcn.0050cba0
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 2
push eax
call fcn.0040b7d0
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4641f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x10]
lea ecx, [edi + 0xc]
push eax
call fcn.0040b7d0
push 0xdc
call fcn.00551c81
add esp, 4
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x464225
mov ecx, eax
call fcn.00462080
jmp 0x464227
xor eax, eax
lea ecx, [edi + 0x68]
mov byte [ebp - 4], 0
push eax
call fcn.00450290
push 0x68
call fcn.00551c81
add esp, 4
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x464252
mov ecx, eax
call fcn.00460e50
jmp 0x464254
xor eax, eax
lea ecx, [edi + 0x70]
mov byte [ebp - 4], 0
push eax
call fcn.00450300
mov ecx, dword [edi + 0x68]
push edi
mov eax, dword [ecx]
call dword [eax + 0x14]
push str.internalname
mov ecx, ebx
call fcn.004eb580
test eax, eax
je 0x464282
lea ecx, [eax + 0x10]
call fcn.004ea3b0
mov edx, eax
lea ecx, [ebp + 0xc]
call fcn.0050cba0
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 5
push eax
call fcn.0040b7d0
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4642b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.iconindex
mov ecx, ebx
mov dword [ebp + 0xc], 0
call fcn.004eb580
test eax, eax
je 0x4642ea
lea ecx, [eax + 0x10]
call fcn.004ea3b0
lea ecx, [ebp + 0xc]
push ecx
push 0x5c7b7c
push eax
call fcn.00557ef6
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, ebx
push str.ifnotexistlnk
mov dword [edi + 8], eax
call fcn.004eb580
test eax, eax
je 0x464308
lea ecx, [eax + 0x10]
call fcn.004ea3b0
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.0050cba0
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.004501e0
mov byte [ebp - 4], 7
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax]
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x28]
mov dword [ebp + 0xc], eax
test esi, esi
je 0x46435a
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x46435a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x46435a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
mov ecx, ebx
push str.ifnotexistlnk
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.004eb580
test eax, eax
je 0x464391
lea ecx, [eax + 0x10]
call fcn.004ea3b0
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.0050cba0
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 8
push eax
call fcn.0040b7d0
mov byte [ebp - 4], 6
or esi, 0xffffffff
mov edx, dword [ebp - 0x20]
mov ecx, esi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4643cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0x70]
mov ecx, ebx
push str.uniquereport
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0
call fcn.004eb580
test eax, eax
je 0x464402
lea ecx, [eax + 0x10]
call fcn.004ea3b0
lea ecx, [ebp - 0x14]
push ecx
push 0x5c7b7c
push eax
call fcn.00557ef6
add esp, 0xc
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x14]
mov eax, dword [ecx]
call dword [eax + 0x44]
push str.RegistryExist
mov ecx, ebx
call fcn.004eabf0
mov dword [ebp - 0x14], eax
test eax, eax
je 0x464561
push str.path
mov ecx, eax
call fcn.004eb580
test eax, eax
je 0x46443c
lea ecx, [eax + 0x10]
call fcn.004ea3b0
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.0050cba0
mov byte [ebp - 4], 9
mov ecx, dword [ebp + 0xc]
add ecx, 0x28
push eax
call fcn.0040b7d0
mov byte [ebp - 4], 6
mov ecx, esi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x464476
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
push str.machine
mov dword [ebp - 0x20], 0
call fcn.004eb580
test eax, eax
je 0x4644a8
lea ecx, [eax + 0x10]
call fcn.004ea3b0
lea ecx, [ebp - 0x20]
push ecx
push 0x5c7b7c
push eax
call fcn.00557ef6
add esp, 0xc
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp dword [ebp - 0x20], eax
push str.value
setne al
add eax, 0x80000001
mov dword [ecx + 0x24], eax
mov ecx, dword [ebp - 0x14]
call fcn.004eb580
test eax, eax
je 0x4644d4
lea ecx, [eax + 0x10]
call fcn.004ea3b0
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.0050cba0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp + 0xc]
add ecx, 0x2c
push eax
call fcn.0040b7d0
mov byte [ebp - 4], 6
mov ecx, esi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46450e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
push str.file
call fcn.004eb580
test eax, eax
je 0x464527
lea ecx, [eax + 0x10]
call fcn.004ea3b0
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.0050cba0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp + 0xc]
add ecx, 0x30
push eax
call fcn.0040b7d0
mov byte [ebp - 4], 6
mov ecx, esi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x464561
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.DownloadInfo
mov ecx, ebx
mov dword [edi + 0x78], 1
call fcn.004eabf0
mov dword [ebp + 0xc], eax
test eax, eax
je 0x464611
mov ecx, dword [edi + 0x70]
mov dword [ebp - 0x20], ecx
mov ecx, eax
push 0x5c0c70
call fcn.004eb580
test eax, eax
je 0x46459d
lea ecx, [eax + 0x10]
call fcn.004ea3b0
push ecx
mov edx, eax
mov ecx, esp
call fcn.0050cba0
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [edi + 0x70]
mov ecx, dword [ebp + 0xc]
push str.cmdline
mov dword [ebp - 0x20], eax
call fcn.004eb580
test eax, eax
je 0x4645ce
lea ecx, [eax + 0x10]
call fcn.004ea3b0
push ecx
mov edx, eax
mov ecx, esp
call fcn.0050cba0
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [edi + 0x70]
mov ecx, dword [ebp + 0xc]
push str.filename
mov dword [ebp - 0x20], eax
call fcn.004eb580
test eax, eax
je 0x4645ff
lea ecx, [eax + 0x10]
call fcn.004ea3b0
push ecx
mov edx, eax
mov ecx, esp
call fcn.0050cba0
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
call dword [eax + 0x20]
push str.iconpath
mov ecx, ebx
call fcn.004eb580
test eax, eax
je 0x464629
lea ecx, [eax + 0x10]
call fcn.004ea3b0
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.0050cba0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], 0
je 0x4646eb
lea ebx, [edi + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
push eax
mov ecx, ebx
call fcn.0040b7d0
push 0x208
mov byte [ebp - 4], 0xd
call fcn.00551ee7
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
je 0x4646b3
push 0x104
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
lea ecx, [ebp + 0xc]
call fcn.0040c2d0
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xe
call fcn.0040b7d0
mov byte [ebp - 4], 0xd
or ecx, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4646b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [edi + 8]
mov ebx, dword [edi + 0x70]
push ecx
mov ecx, dword [ebp - 0x20]
mov edi, esp
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.0040c3c0
add eax, 0x10
mov ecx, ebx
mov dword [edi], eax
mov eax, dword [ebx]
call dword [eax + 0x3c]
push esi
mov byte [ebp - 4], 0xc
call fcn.00551f79
mov edi, dword [ebp - 0x18]
add esp, 4
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
push 0x5c0c94
mov ecx, ebx
call fcn.004eb580
test eax, eax
je 0x464710
lea ecx, [eax + 0x10]
call fcn.004ea3b0
test eax, eax
je 0x464710
mov ecx, dword [edi + 0x68]
push eax
mov edx, dword [ecx]
call dword [edx + 0x10]
mov byte [ebp - 4], 6
mov ecx, esi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x464730
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x464750
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x464774
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8