Function at 0x5c4050
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x737b2d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x899944]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x30]
call fcn.005bce80
test eax, eax
je 0x5c40cc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00577f20
push 0
push 0x766b28
lea ecx, [ebp - 0x28]
call fcn.00590810
test eax, eax
jge 0x5c40b4
mov dword [ebp - 0x20], 0x100
jmp 0x5c40bb
mov dword [ebp - 0x20], 0x200
mov ecx, dword [ebp - 0x28]
sub ecx, 0x10
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x38]
call fcn.00577240
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x765daa
lea ecx, [ebp - 0x10]
call fcn.00577f20
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x5c40fd
mov dword [ebp - 0x2c], 0
jmp 0x5c410c
mov edx, dword [ebp + 8]
push edx
call fcn.00710f40
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
call fcn.005772d0
push 0
push 0x766b34
lea ecx, [ebp - 0x10]
call fcn.00590810
cmp eax, 0xffffffff
jg 0x5c4144
push 0
push 0x766b48
lea ecx, [ebp - 0x10]
call fcn.00590810
cmp eax, 0xffffffff
jle 0x5c4171
mov dword [ebp - 0x14], reloc.OLEAUT32.dll_SysReAllocString
push 0x765dab
push 0x766b50
lea ecx, [ebp - 0x10]
call fcn.00598370
push 0x765db5
push 0x766b64
lea ecx, [ebp - 0x10]
call fcn.00598370
jmp 0x5c41cd
push 0
push 0x766b6c
lea ecx, [ebp - 0x10]
call fcn.00590810
cmp eax, 0xffffffff
jg 0x5c4199
push 0
push 0x766b80
lea ecx, [ebp - 0x10]
call fcn.00590810
cmp eax, 0xffffffff
jle 0x5c41c6
mov dword [ebp - 0x14], reloc.WS2_32.dll_accept
push 0x765db6
push 0x766b88
lea ecx, [ebp - 0x10]
call fcn.00598370
push 0x765db7
push 0x766b9c
lea ecx, [ebp - 0x10]
call fcn.00598370
jmp 0x5c41cd
mov dword [ebp - 0x14], reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
call fcn.005785c0
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x20]
or ecx, 0x2001f
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5c425f
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov edx, dword [ebp + 0x10]
push edx
push 1
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x5c4235
mov dword [ebp - 0x18], 1
jmp 0x5c425a
push 0x765dbb
lea ecx, [ebp - 0x40]
call fcn.00577f20
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x40]
sub edx, 0x10
mov dword [ebp - 0x44], edx
mov ecx, dword [ebp - 0x44]
call fcn.00577240
jmp 0x5c4344
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.005c3c10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x5c433d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
push 0
push 0
lea ecx, [ebp - 0x24]
push ecx
push 0x400
mov edx, dword [ebp - 0x34]
push edx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push 0x766ba4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esi + eax + 0x28]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x34]
push eax
push str.Registry_Reading
push str._s_failed_with_error__d:__s
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalSize]
push eax
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0059a670
add esp, 0x18
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.ReadingRegistry__s_failed_:__s
push str.CAutoUpdateCommonFunctions::WriteRegistryStringCheck64
push 0x5a7
push str.D:Bit_BucketBTS_RetailSP24PLUS_REQ_frontendodin_groupFTUpdateServiceUpdateCommonFunctions.cpp
push 4
push 0
call fcn.00595750
push eax
call fcn.00597650
add esp, 0x24
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x14], 0
je 0x5c4354
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
sub eax, 0x10
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
call fcn.00577240
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10