Function at 0x405230
Capabilities:
Set registry value

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov edx, dword [esp + 0x24]
push esi
lea eax, [esp + 0x20]
push edi
lea ecx, [esp + 0x1c]
xor ebx, ebx
push eax
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40583f
mov edi, str.NameSpace_Catalog5
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
not ecx
dec ecx
push ecx
push str.NameSpace_Catalog5
push 1
push ebx
push str.Current_NameSpace_Catalog
push eax
call esi
mov edi, str.Protocol_Catalog9
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x20]
push str.Protocol_Catalog9
push 1
push ebx
push str.Current_Protocol_Catalog
push ecx
call esi
mov edi, 0x4168ac
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4168ac
push 1
push ebx
push str.WinSock_Registry_Version
push edx
call esi
mov ecx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea eax, [esp + 0x14]
push eax
push str.NameSpace_Catalog5
push ecx
call ebp
test eax, eax
jne 0x405556
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push 4
push edx
push 4
push ebx
push str.Num_Catalog_Entries
push eax
mov dword [esp + 0x30], 3
call esi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
push ebx
push str.Serial_Access_Num
push edx
mov dword [esp + 0x30], 4
call esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push str.Catalog_Entries
push ecx
call ebp
test eax, eax
jne 0x405547
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
push str.000000000001
push eax
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x4053ef
mov ebx, 0x413b98
mov dword [esp + 0x20], 7
mov ecx, dword [ebx - 0x20]
lea eax, [ebx - 4]
sub ecx, 0
je 0x4053af
dec ecx
je 0x40539b
dec ecx
jne 0x4053d1
mov edx, dword [esp + 0x2c]
push 0x10
push ebx
push 3
lea ecx, [ebx - 0x1c]
push 0
push ecx
push edx
call esi
jmp 0x4053d1
mov ecx, dword [esp + 0x2c]
push 4
push eax
push 4
lea eax, [ebx - 0x1c]
push 0
push eax
push ecx
call esi
jmp 0x4053d1
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx - 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push 1
push eax
mov eax, dword [esp + 0x3c]
push edx
push eax
call esi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
add ebx, 0x44
cmp ebx, str._SystemRoot_System32winrnr.dll
jl 0x405376
mov ecx, dword [esp + 0x2c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
mov ebx, dword [esp + 0x20]
jmp 0x4053f5
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
push str.000000000002
push eax
call ebp
test eax, eax
jne 0x40549d
mov eax, dword [esp + 0x20]
mov ecx, ebx
shl ecx, 4
mov ebp, 7
add ecx, ebx
add eax, ebp
lea ebx, [ecx*4 + 0x413b98]
mov dword [esp + 0x20], eax
mov ecx, dword [ebx - 0x20]
lea eax, [ebx - 4]
sub ecx, 0
je 0x405464
dec ecx
je 0x405450
dec ecx
jne 0x405486
mov eax, dword [esp + 0x2c]
push 0x10
push ebx
push 3
lea edx, [ebx - 0x1c]
push 0
push edx
push eax
call esi
jmp 0x405486
mov edx, dword [esp + 0x2c]
push 4
push eax
push 4
lea ecx, [ebx - 0x1c]
push 0
push ecx
push edx
call esi
jmp 0x405486
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x30]
push ebx
push 1
push eax
lea eax, [ebx - 0x1c]
push eax
push ecx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 0x44
dec ebp
jne 0x40542b
mov edx, dword [esp + 0x2c]
push edx
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
push str.000000000003
push ecx
call ebp
test eax, eax
jne 0x405537
mov edx, ebx
mov ebp, 7
shl edx, 4
add edx, ebx
lea ebx, [edx*4 + 0x413b98]
mov ecx, dword [ebx - 0x20]
lea eax, [ebx - 4]
sub ecx, 0
je 0x405502
dec ecx
je 0x4054ee
dec ecx
jne 0x405524
mov ecx, dword [esp + 0x2c]
push 0x10
push ebx
push 3
lea eax, [ebx - 0x1c]
push 0
push eax
push ecx
call esi
jmp 0x405524
push 4
push eax
mov eax, dword [esp + 0x34]
push 4
lea edx, [ebx - 0x1c]
push 0
push edx
push eax
call esi
jmp 0x405524
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push 1
lea ecx, [ebx - 0x1c]
push eax
push ecx
push edx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 0x44
dec ebp
jne 0x4054c9
mov eax, dword [esp + 0x2c]
push eax
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call edi
jmp 0x40555c
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
jmp 0x40555c
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push str.Protocol_Catalog9
push ecx
call ebp
test eax, eax
jne 0x40583f
lea edx, [esp + 0x18]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x24]
push str.Num_Catalog_Entries
push eax
mov dword [esp + 0x30], 0xb
call esi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
push 0
push str.Serial_Access_Num
push edx
mov dword [esp + 0x30], 0xc
call esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push str.Next_Catalog_Entry_ID
push ecx
mov dword [esp + 0x30], 0x403
call esi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push str.Catalog_Entries
push eax
call ebp
test eax, eax
jne 0x405838
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push str.000000000001
push edx
call ebp
test eax, eax
jne 0x40561f
push 0x378
push 0x41410c
push 3
push eax
mov eax, dword [esp + 0x3c]
push str.PackedCatalogItem
push eax
call esi
mov ecx, dword [esp + 0x2c]
push ecx
call edi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
push str.000000000002
push eax
call ebp
test eax, eax
jne 0x405654
mov ecx, dword [esp + 0x2c]
push 0x378
push 0x414484
push 3
push eax
push str.PackedCatalogItem
push ecx
call esi
mov edx, dword [esp + 0x2c]
push edx
call edi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
push str.000000000003
push ecx
call ebp
test eax, eax
jne 0x405689
mov edx, dword [esp + 0x2c]
push 0x378
push 0x4147fc
push 3
push eax
push str.PackedCatalogItem
push edx
call esi
mov eax, dword [esp + 0x2c]
push eax
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push str.000000000004
push edx
call ebp
test eax, eax
jne 0x4056be
push 0x378
push 0x414b74
push 3
push eax
mov eax, dword [esp + 0x3c]
push str.PackedCatalogItem
push eax
call esi
mov ecx, dword [esp + 0x2c]
push ecx
call edi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
push str.000000000005
push eax
call ebp
test eax, eax
jne 0x4056f3
mov ecx, dword [esp + 0x2c]
push 0x378
push 0x414eec
push 3
push eax
push str.PackedCatalogItem
push ecx
call esi
mov edx, dword [esp + 0x2c]
push edx
call edi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
push str.000000000006
push ecx
call ebp
test eax, eax
jne 0x405728
mov edx, dword [esp + 0x2c]
push 0x378
push 0x415264
push 3
push eax
push str.PackedCatalogItem
push edx
call esi
mov eax, dword [esp + 0x2c]
push eax
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push str.000000000007
push edx
call ebp
test eax, eax
jne 0x40575d
push 0x378
push 0x4155dc
push 3
push eax
mov eax, dword [esp + 0x3c]
push str.PackedCatalogItem
push eax
call esi
mov ecx, dword [esp + 0x2c]
push ecx
call edi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
push str.000000000008
push eax
call ebp
test eax, eax
jne 0x405792
mov ecx, dword [esp + 0x2c]
push 0x378
push 0x415954
push 3
push eax
push str.PackedCatalogItem
push ecx
call esi
mov edx, dword [esp + 0x2c]
push edx
call edi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
push str.000000000009
push ecx
call ebp
test eax, eax
jne 0x4057c7
mov edx, dword [esp + 0x2c]
push 0x378
push 0x415ccc
push 3
push eax
push str.PackedCatalogItem
push edx
call esi
mov eax, dword [esp + 0x2c]
push eax
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push str.000000000010
push edx
call ebp
test eax, eax
jne 0x4057fc
push 0x378
push 0x416044
push 3
push eax
mov eax, dword [esp + 0x3c]
push str.PackedCatalogItem
push eax
call esi
mov ecx, dword [esp + 0x2c]
push ecx
call edi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
push str.000000000011
push eax
call ebp
test eax, eax
jne 0x405831
mov ecx, dword [esp + 0x2c]
push 0x378
push str._SystemRoot__system32mswsock.dll
push 3
push eax
push str.PackedCatalogItem
push ecx
call esi
mov edx, dword [esp + 0x2c]
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call edi
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret