Function at 0x41ae0e
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x62c]
push ebx
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push 0x401558
push SysReAllocString
mov edi, ebx
mov dword [ebp - 0x62c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41b4da
push 0x206
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x654], 0x208
lea eax, [ebp - 0x654]
xor esi, esi
inc esi
mov dword [ebp - 0x658], esi
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x658]
push eax
push ebx
push 0x402e24
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b4ce
cmp dword [ebp - 0x658], esi
jne 0x41b4ce
cmp ax, word [ebp - 0x418]
je 0x41b4ce
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x634]
mov dword [ebp - 0x634], ebx
push eax
push 0x40360c
push esi
push ebx
push 0x4036b0
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x640], ebx
mov dword [ebp - 0x624], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x41b432
mov eax, dword [ebp - 0x634]
lea ecx, [ebp - 0x630]
push ecx
push 0x403680
push eax
mov esi, dword [eax]
mov ecx, dword [esi]
call dword [0x42e290]
call dword [esi]
mov edi, eax
test edi, edi
js 0x41b432
mov eax, dword [ebp - 0x630]
lea edx, [ebp - 0x640]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x40]
mov ecx, esi
call dword [0x42e290]
call esi
mov edi, eax
test edi, edi
js 0x41b432
mov eax, dword [ebp - 0x640]
lea ecx, [ebp - 0x624]
push ecx
push 0x4036a0
push eax
mov esi, dword [eax]
mov ecx, dword [esi]
call dword [0x42e290]
call dword [esi]
mov edi, eax
test edi, edi
js 0x41b432
mov eax, dword [ebp - 0x624]
test eax, eax
je 0x41b44c
mov dword [ebp - 0x628], ebx
lea edx, [ebp - 0x628]
mov ecx, dword [eax]
push edx
push eax
mov esi, dword [ecx + 0x4c]
mov ecx, esi
call dword [0x42e290]
call esi
mov edi, eax
test edi, edi
js 0x41b3f9
mov esi, dword [ebp - 0x628]
lea ecx, [ebp - 0x648]
push 0x402fcc
mov dword [ebp - 0x638], esi
call fcn.0041adc5
cmp byte [eax + 4], bl
jne 0x41afe9
mov ebx, dword [eax]
test ebx, ebx
jne 0x41afe9
mov ebx, 0x401064
push 0x402fd8
lea ecx, [ebp - 0x650]
call fcn.0041adc5
cmp byte [eax + 4], 0
je 0x41b005
xor eax, eax
mov edi, eax
jmp 0x41b010
mov edi, dword [eax]
test edi, edi
jne 0x41b010
mov edi, 0x401064
push 0x402fe8
lea ecx, [ebp - 0x660]
call fcn.0041adc5
cmp byte [eax + 4], 0
je 0x41b02a
xor eax, eax
jmp 0x41b035
mov eax, dword [eax]
test eax, eax
jne 0x41b035
mov eax, 0x401064
mov esi, dword [esi]
push ebx
push edi
push eax
push dword [ebp - 0x638]
mov ecx, dword [esi + 0x1c]
call dword [0x42e290]
call dword [esi + 0x1c]
push dword [ebp - 0x660]
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x650]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x648]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor ebx, ebx
test edi, edi
js 0x41b3f9
mov edi, dword [ebp - 0x624]
lea ecx, [ebp - 0x63c]
push 0x402ffc
mov dword [ebp - 0x64c], ebx
call fcn.0041adc5
cmp byte [eax + 4], bl
je 0x41b0a1
mov eax, ebx
jmp 0x41b0ac
mov eax, dword [eax]
test eax, eax
jne 0x41b0ac
mov eax, 0x401064
mov esi, dword [edi]
lea ecx, [ebp - 0x64c]
push ecx
push 0xffffffffffffffff
push ebx
mov ecx, dword [esi + 0x50]
push eax
push dword [ebp - 0x628]
push edi
call dword [0x42e290]
call dword [esi + 0x50]
push dword [ebp - 0x63c]
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
js 0x41b3df
mov eax, dword [ebp - 0x64c]
lea edx, [ebp - 0x638]
mov dword [ebp - 0x638], ebx
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x42e290]
call esi
cmp dword [ebp - 0x638], ebx
jle 0x41b3dd
xor eax, eax
lea ecx, [ebp - 0x65c]
mov dword [ebp - 0x65c], eax
mov dword [ebp - 0x644], eax
mov eax, dword [ebp - 0x64c]
push ecx
push ebx
push eax
mov esi, dword [eax]
mov ecx, dword [esi + 0x30]
call dword [0x42e290]
call dword [esi + 0x30]
mov edi, eax
test edi, edi
js 0x41b39c
mov eax, dword [ebp - 0x65c]
lea ecx, [ebp - 0x644]
push ecx
push 0x40361c
push eax
mov esi, dword [eax]
mov ecx, dword [esi]
call dword [0x42e290]
call dword [esi]
mov edi, eax
test edi, edi
js 0x41b39c
xor eax, eax
lea edi, [ebp - 0x670]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x670]
push ecx
xor ecx, ecx
push ecx
stosd dword es:[edi], eax
push ecx
push dword [0x40c1d8]
stosd dword es:[edi], eax
push ecx
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x670], ax
mov eax, dword [ebp - 0x644]
push eax
mov esi, dword [eax]
mov ecx, dword [esi + 0x14]
call dword [0x42e290]
call dword [esi + 0x14]
mov edi, eax
test edi, edi
js 0x41b391
push 8
pop eax
cmp ax, word [ebp - 0x670]
jne 0x41b391
mov esi, dword [ebp - 0x668]
test esi, esi
je 0x41b391
xor eax, eax
cmp ax, word [esi]
je 0x41b391
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x210]
mov edx, 0x104
push esi
call fcn.00418392
test eax, eax
js 0x41b391
push 0x5c
pop eax
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41b391
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x620], ax
lea eax, [ebp - 0x61e]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x620]
mov edx, 0x104
push esi
call fcn.00418392
test eax, eax
js 0x41b391
lea eax, [ebp - 0x418]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x210]
call fcn.00418392
test eax, eax
js 0x41b391
lea ecx, [ebp - 0x210]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41b291
sub ecx, edx
sar ecx, 1
je 0x41b2cc
push 0x5c
pop eax
cmp ax, word [ebp + ecx*2 - 0x212]
jne 0x41b2cc
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x41b4ed
xor eax, eax
mov word [ebp + ecx - 0x210], ax
lea eax, [ebp - 0x620]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x210]
call fcn.00418407
test eax, eax
js 0x41b391
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41b391
test al, 0x10
jne 0x41b391
mov eax, 0xfff
cmp word [ebp - 0x670], ax
jne 0x41b321
push 8
pop eax
mov word [ebp - 0x670], ax
lea eax, [ebp - 0x670]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 8
pop eax
mov word [ebp - 0x670], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x668], eax
test eax, eax
je 0x41b391
mov eax, dword [ebp - 0x644]
lea ecx, [ebp - 0x670]
push ecx
xor ecx, ecx
push ecx
mov esi, dword [eax]
push ecx
push dword [0x40c1d8]
mov ecx, dword [esi + 0x1c]
push 8
push eax
call dword [0x42e290]
call dword [esi + 0x1c]
test eax, eax
js 0x41b391
mov eax, dword [ebp - 0x644]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x42e290]
call esi
lea ecx, [ebp - 0x670]
call fcn.00418375
mov eax, dword [ebp - 0x644]
test eax, eax
je 0x41b3b6
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x42e290]
call esi
mov eax, dword [ebp - 0x65c]
test eax, eax
je 0x41b3d0
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x42e290]
call esi
inc ebx
cmp ebx, dword [ebp - 0x638]
jl 0x41b111
xor ebx, ebx
mov eax, dword [ebp - 0x64c]
test eax, eax
je 0x41b3f9
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x42e290]
call esi
cmp dword [0x42bd78], 0xffffffff
jne 0x41b40b
push ecx
push 4
pop edx
call fcn.004277cb
push 0x403010
push 4
pop edx
call fcn.00427c62
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x41b432
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x42e290]
call esi
mov eax, dword [ebp - 0x624]
test eax, eax
je 0x41b44c
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x42e290]
call esi
mov eax, dword [ebp - 0x640]
test eax, eax
je 0x41b466
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x42e290]
call esi
mov eax, dword [ebp - 0x630]
test eax, eax
je 0x41b480
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x42e290]
call esi
mov eax, dword [ebp - 0x634]
test eax, eax
je 0x41b49a
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x42e290]
call esi
call dword [sym.imp.ole32.dll_CoUninitialize]
push 4
pop ecx
push ecx
lea eax, [ebp - 0x674]
mov dword [ebp - 0x674], 1
push eax
push ecx
push ebx
push 0x403038
push dword [ebp - 0x62c]
mov dword [ebp - 0x654], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret
call fcn.004298c9
int3