Function at 0x401000
Capabilities:
Read .ini file
Set registry value

Disassembly:
sub esp, 0x6d4
mov eax, dword [0x40b004]
xor eax, esp
mov dword [esp + 0x6d0], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebp
push esi
push edi
push 0x104
lea eax, [esp + 0x4dc]
push eax
push 0
call ebx
lea ecx, [esp + 0x4d8]
push 0x5c
push ecx
call fcn.0040199f
add esp, 8
test eax, eax
je 0x40104a
xor edx, edx
mov word [eax], dx
lea edi, [esp + 0x4d8]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401054
mov ecx, 6
mov esi, str.RunLoad.ini
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x4d8]
push eax
push 0x28
lea ecx, [esp + 0x28]
push ecx
push str.taxact
push str.proto
push str.runload
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
lea eax, [esp + 0x2c]
push eax
push 0x80000000
call ebp
test eax, eax
jne 0x4010cd
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x6e8], 0
je 0x4014b2
push 0x104
lea edx, [esp + 0x2d4]
push edx
push 0
call ebx
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0x80000000
call ebp
test eax, eax
je 0x401131
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 1
push 0
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0x80000000
mov dword [esp + 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4014b2
xor edx, edx
push 0x7e
push edx
lea eax, [esp + 0x52]
push eax
mov word [esp + 0x54], dx
call fcn.00406550
add esp, 0xc
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x20]
mov word [esp + eax + 0x48], cx
add eax, 2
test cx, cx
jne 0x401150
lea eax, [esp + 0x48]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401170
mov ecx, dword [str._Protocol]
mov edx, dword [0x40a300]
mov dword [eax], ecx
mov ecx, dword [0x40a304]
mov dword [eax + 4], edx
mov edx, dword [0x40a308]
mov dword [eax + 8], ecx
mov ecx, dword [0x40a30c]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
lea eax, [esp + 0x48]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4011b0
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 1]
push edx
lea eax, [esp + 0x4c]
push eax
push 1
push 0
push 0x40a310
push ecx
call ebx
lea eax, [esp + 0x2d0]
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4011f0
sub eax, ecx
mov ecx, dword [esp + 0x10]
sar eax, 1
lea edx, [eax + eax + 1]
push edx
lea eax, [esp + 0x2d4]
push eax
push 1
push 0
push str.URL_Protocol
push ecx
call ebx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0xf003f
push 0
push str.DefaultIcon
push eax
mov esi, eax
call ebp
test eax, eax
je 0x40126d
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 1
push 0
push 0
push str.DefaultIcon
push esi
mov dword [esp + 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401357
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0xd2]
push eax
mov word [esp + 0xd4], dx
call fcn.00406550
add esp, 0xc
xor eax, eax
nop
movzx ecx, word [eax + 0x40a348]
mov word [esp + eax + 0xc8], cx
add eax, 2
test cx, cx
jne 0x401290
lea eax, [esp + 0x2d0]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4012b0
lea edi, [esp + 0xc8]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4012d0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4012d0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0xc8]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4012f6
mov ecx, dword [0x40a34c]
mov edx, dword [0x40a350]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esp + 0xc8]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401320
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
lea eax, [eax + eax + 1]
push eax
lea ecx, [esp + 0xcc]
push ecx
push 1
push 0
push 0x40a310
push edx
call ebx
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push 0xf003f
push 0
push 0x40a354
push eax
mov esi, eax
call ebp
test eax, eax
je 0x4013a8
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push 0xf003f
push 1
push 0
push 0
push 0x40a354
push esi
mov dword [esp + 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4014a7
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0xd2]
push edx
mov word [esp + 0xd4], cx
call fcn.00406550
add esp, 0xc
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x40a348]
mov word [esp + eax + 0xc8], cx
add eax, 2
test cx, cx
jne 0x4013d0
lea eax, [esp + 0x2d0]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4013f0
lea edi, [esp + 0xc8]
sub eax, edx
add edi, 0xfffffffe
jmp 0x401410
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401410
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0xc8]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401436
mov ecx, dword [str.___1]
mov edx, dword [0x40a380]
mov dword [eax], ecx
mov cx, word [0x40a384]
mov dword [eax + 4], edx
mov word [eax + 8], cx
lea eax, [esp + 0xc8]
lea edx, [eax + 2]
jmp 0x401470
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401470
mov ecx, dword [esp + 0x1c]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 1]
push edx
lea eax, [esp + 0xcc]
push eax
push 1
push 0
push 0x40a310
push ecx
call ebx
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x6e0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401856
add esp, 0x6d4
ret