Function at 0x405240
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43a356
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x44a5dc]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push esi
push edi
mov eax, dword [0x44a5dc]
xor eax, esp
push eax
lea eax, [esp + 0x838]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x840], esi
mov dword [esp + 0x24], 0x400
call fcn.004077c6
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4052b6
push 0x80004005
call fcn.00402320
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x840], 1
xor eax, eax
mov ecx, 0x200
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push esi
push str.SoftwareMicrosoftInternet_ExplorerMain
push 0x80000001
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4053fb
mov edx, dword [esp + 0x18]
push str.Start_Page
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x2c]
lea esi, [esp + 0x34]
mov dword [esp + 0x1c], edx
call fcn.00407620
test eax, eax
jne 0x4053fb
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405330
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x24]
call fcn.00402990
mov ebx, dword [esp + 0x1c]
mov esi, dword [ebx - 0xc]
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x405374
push esi
lea ecx, [esp + 0x20]
call fcn.00402460
mov ebx, dword [esp + 0x1c]
lea edx, [esi + 1]
push edx
push ebx
call fcn.00423dc4
add esp, 8
test esi, esi
jl 0x4053f1
cmp esi, dword [ebx - 8]
jg 0x4053f1
cmp dword [esp + 0x20], 0
mov dword [ebx - 0xc], esi
mov word [ebx + esi*2], 0
je 0x4053fb
cmp dword [ebx - 0xc], 0
jl 0x4053fb
mov eax, dword [esp + 0x20]
push eax
push ebx
call fcn.00423b3e
add esp, 8
test eax, eax
je 0x4053fb
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x4053fb
add ebx, 0xfffffff0
mov byte [esp + 0x840], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053df
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405501
push eax
jmp 0x4054fb
push 0x80070057
call fcn.00402320
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareMicrosoftInternet_ExplorerMain
push 0x80000001
mov dword [esp + 0x3c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x405449
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40543d
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], esi
je 0x405483
add ebx, 0xfffffff0
mov byte [esp + 0x840], 0
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40546d
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40547c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x405506
mov edi, dword [esp + 0x20]
xor eax, eax
test edi, edi
setne al
test eax, eax
jne 0x40549c
push 0x80004005
call fcn.00402320
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
lea ecx, [eax + eax]
push ecx
push edi
push 1
push 0
push str.Start_Page
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x4054ce
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x14], esi
jmp 0x4054d2
mov esi, dword [esp + 0x14]
add ebx, 0xfffffff0
mov byte [esp + 0x840], 0
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4054f6
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
test esi, esi
je 0x405501
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x838]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.00422f00
mov esp, ebp
pop ebp
ret 4