Function at 0x404050
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54bb56
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push esi
push edi
mov eax, dword [0x5b2920]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x34], ebx
push 0x35
mov esi, 7
push str.SoftwareMicrosoftInternet_ExplorerInternetRegistry
lea ecx, [esp + 0x44]
mov dword [esp + 0x40], eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
call fcn.004029f0
lea ecx, [esp + 0x3c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea edi, [esp + 0x18]
mov dword [esp + 0x118], ebx
call fcn.0040d3d0
mov byte [esp + 0x110], 2
cmp dword [esp + 0x54], 8
jb 0x4040f5
mov edx, dword [esp + 0x40]
push edx
call fcn.004e946d
add esp, 4
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
je 0x404257
push ebx
mov esi, 0xf
push 0x56615b
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.004032a0
mov byte [esp + 0x110], 3
push 6
push str.pwuuid
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.004032a0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ebx, [esp + 0x60]
lea esi, [esp + 0x84]
mov byte [esp + 0x118], 4
call fcn.0040d590
mov edi, 0x10
cmp dword [esp + 0x30], edi
jb 0x40418a
mov edx, dword [esp + 0x1c]
push edx
call fcn.004e946d
add esp, 4
xor ebx, ebx
mov esi, 0xf
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x110], 7
cmp dword [esp + 0x70], edi
jb 0x4041b8
mov eax, dword [esp + 0x5c]
push eax
call fcn.004e946d
add esp, 4
cmp dword [esp + 0x90], ebx
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
je 0x40422f
mov esi, dword [esp + 0x38]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x84]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00402ec0
cmp dword [esp + 0x94], edi
jb 0x404209
mov edx, dword [esp + 0x80]
push edx
call fcn.004e946d
add esp, 4
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
mov dword [esp + 0x10], vtable.RegConfig.0
jmp 0x40454f
mov byte [esp + 0x110], 2
cmp dword [esp + 0x94], edi
jb 0x404250
mov eax, dword [esp + 0x80]
push eax
call fcn.004e946d
add esp, 4
mov esi, 7
xor ebx, ebx
push 0x35
push str.SoftwareMicrosoftInternet_ExplorerInternetRegistry
lea ecx, [esp + 0x84]
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], bx
call fcn.004029f0
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x78]
push edx
mov byte [esp + 0x118], 8
call fcn.0040d250
mov byte [esp + 0x110], 0xa
cmp dword [esp + 0x94], 8
jb 0x4042b9
mov eax, dword [esp + 0x80]
push eax
call fcn.004e946d
add esp, 4
mov dword [esp + 0x94], esi
push ebx
mov esi, 0xf
push 0x56615b
lea ecx, [esp + 0x44]
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], bx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.004032a0
mov byte [esp + 0x110], 0xb
push 6
push str.pwuuid
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.004032a0
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x78]
push edx
lea ebx, [esp + 0x44]
lea esi, [esp + 0xa0]
mov byte [esp + 0x118], 0xc
call fcn.0040d590
mov esi, 0x10
cmp dword [esp + 0x70], esi
jb 0x40434d
mov eax, dword [esp + 0x5c]
push eax
call fcn.004e946d
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
mov byte [esp + 0x110], 0xf
cmp dword [esp + 0x54], esi
jb 0x40437b
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004e946d
add esp, 4
cmp dword [esp + 0xac], ebx
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
jne 0x4044e5
push 0x40
lea edx, [esp + 0xb9]
push ebx
push edx
mov byte [esp + 0xc0], bl
call fcn.00516c20
add esp, 0xc
lea esi, [esp + 0xb4]
lea edi, [esp + 0x34]
mov dword [esp + 0x34], 0x41
call fcn.0040baa0
mov edi, 0xf
mov eax, esi
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4043e5
sub eax, edx
push eax
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x84]
call fcn.004032a0
mov byte [esp + 0x110], 0x10
push 6
push str.pwuuid
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.004032a0
mov eax, dword [esp + 0x78]
cmp eax, ebx
mov esi, 0x10
je 0x404474
cmp dword [esp + 0x94], esi
mov edx, dword [esp + 0x80]
jae 0x40444d
lea edx, [esp + 0x80]
cmp dword [esp + 0x30], esi
mov ecx, dword [esp + 0x1c]
jae 0x40445b
lea ecx, [esp + 0x1c]
mov edi, dword [esp + 0x90]
push edi
push edx
push 1
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, 0xf
cmp dword [esp + 0x30], esi
jb 0x404487
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004e946d
add esp, 4
mov byte [esp + 0x110], 0xf
cmp dword [esp + 0x94], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x4044b4
mov edx, dword [esp + 0x80]
push edx
call fcn.004e946d
add esp, 4
lea eax, [esp + 0xb4]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4044c0
sub eax, edx
push eax
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0xa0]
call fcn.004032a0
mov edi, 0xf
mov esi, dword [esp + 0x38]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xa0]
push ecx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00402ec0
cmp dword [esp + 0xb0], 0x10
jb 0x40451e
mov edx, dword [esp + 0x9c]
push edx
call fcn.004e946d
add esp, 4
mov eax, dword [esp + 0x78]
cmp eax, ebx
mov dword [esp + 0xb0], edi
mov edi, vtable.RegConfig.0
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
mov dword [esp + 0x74], edi
je 0x40454b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40455e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.0050fe87
mov esp, ebp
pop ebp
ret