Function at 0x4f39a0
Capabilities:
Delete registry value
Get file size
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa550
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x29c
push ebx
push esi
push edi
mov esi, ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x28]
mov edx, dword [esi + 0x74]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x50]
xor edi, edi
push eax
push ecx
push edi
push edi
push 0x63d538
push edx
mov dword [ebp - 0x70], esi
mov dword [ebp - 4], edi
mov dword [esi + 0x64], edi
mov dword [ebp - 0x28], 0x10
call ebx
test eax, eax
je 0x4f3a0c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [esi + 0x50], edi
mov dword [esi + 0x64], 1
mov dword [esi + 0x54], edi
mov ecx, dword [0x65ca8c]
mov dword [ebp - 0x18], ecx
mov eax, dword [esi + 0x28]
mov byte [ebp - 4], 1
cmp eax, edi
je 0x4f3bb0
mov dword [ebp - 0x40], ecx
push eax
lea eax, [ebp - 0x40]
push str.SoftwareDownloadManager_ld
push eax
mov byte [ebp - 4], 2
call fcn.0057f8fb
add esp, 0xc
mov edx, dword [ebp - 0x40]
lea ecx, [ebp + 0x10]
push edi
push ecx
push edi
push 0xf003f
push edi
push 0x660ff8
push edi
push edx
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x2a8]
push eax
push ecx
push edi
push edi
push str.LocalFileName
push edx
mov dword [ebp - 0x28], 0x208
call ebx
test eax, eax
je 0x4f3aa6
push str.Cannot_find_old_localFileName__e1148__n
mov ecx, esi
call fcn.004f1060
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
jmp 0x4f3d9f
lea eax, [ebp - 0x2a8]
lea ecx, [ebp - 0x18]
push eax
call fcn.00586cbc
mov ecx, dword [0x65ca8c]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 0x18]
lea eax, [ebp + 8]
push edx
push str.Loading_old_localFileName____s_from_registry_n
push eax
mov byte [ebp - 4], 3
call fcn.0057f8fb
mov ecx, dword [ebp + 8]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.004f1060
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x28]
lea ebx, [esi + 0x40]
push edx
push ebx
push edi
push edi
push str.FileSize
push eax
mov dword [ebp - 0x28], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4f3b19
push str.Cannot_find_old_file_size_in_registry._n
mov ecx, esi
call fcn.004f1060
mov dword [ebx], edi
mov dword [ebx + 4], edi
jmp 0x4f3b3c
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push ecx
push edx
lea eax, [ebp + 8]
push str.Loading_old_file_size__I64d_Bytes_from_registry_n
push eax
call fcn.0057f8fb
mov ecx, dword [ebp + 8]
add esp, 0x10
push ecx
mov ecx, esi
call fcn.004f1060
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x34]
push edx
push eax
push edi
push edi
push str.Duration
push ecx
mov dword [ebp - 0x28], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4f3b8c
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov ecx, eax
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], eax
push ecx
push edx
lea eax, [ebp + 8]
push str.Loading_duration_from_registry:__f_sec_n
push eax
call fcn.0057f8fb
mov ecx, dword [ebp + 8]
add esp, 0x10
push ecx
mov ecx, esi
call fcn.004f1060
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00586b33
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00586b33
jmp 0x4f3bd9
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x4f3da4
push eax
lea eax, [ebp - 0x18]
push 0x636fa0
push eax
call fcn.0057f8fb
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esi + 0x40], ecx
add esp, 0xc
mov dword [esi + 0x44], edx
mov ecx, dword [ebp - 0x18]
push edi
push edi
lea eax, [ebp - 0x60]
push edi
push eax
push ecx
call fcn.0056b52c
mov edx, dword [ebp - 0x18]
add esp, 0x14
mov ecx, esi
push edx
push edi
call fcn.004f6910
mov eax, dword [0x65ca8c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], eax
push str.Rebuilding_old_downloaded_files_before_resume._n
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.004f1060
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x24]
push eax
push ecx
mov dword [esi + 0x38], edi
push edx
mov dword [esi + 0x3c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
call fcn.004f38f0
add esp, 0xc
test eax, eax
jne 0x4f3c5e
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
lea edx, [ebp - 0x14]
push str.Err_1231__f_s__e_ld._n
push edx
call fcn.0057f8fb
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov ecx, esi
push eax
call fcn.004f1060
mov ecx, dword [ebp - 0x24]
mov ebx, dword [esi + 0x38]
mov edx, dword [ebp - 0x20]
add ebx, ecx
mov dword [esi + 0x38], ebx
mov ecx, dword [esi + 0x3c]
adc ecx, edx
mov eax, ecx
mov dword [esi + 0x3c], ecx
cmp eax, edi
jg 0x4f3c87
jl 0x4f3c81
cmp dword [esi + 0x38], edi
jae 0x4f3c87
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x4c]
cmp eax, 0xffffffff
jne 0x4f3d0e
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x50]
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], ecx
push str.This_is_the_last_chunk._End_rebuilding._n
mov ecx, esi
mov dword [esi + 0x88], edx
call fcn.004f1060
mov eax, dword [esi + 0x74]
lea ebx, [esi + 0x74]
test eax, eax
je 0x4f3cdf
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [0x65ca8c]
mov dword [ebp - 0x5c], ecx
mov eax, dword [esi + 0x28]
mov byte [ebp - 4], 7
test eax, eax
je 0x4f434d
push eax
lea edx, [ebp - 0x5c]
push str.SoftwareDownloadManager_ldChList
push edx
call fcn.0057f8fb
add esp, 0xc
jmp 0x4f4366
mov edx, dword [ebp - 0x18]
mov ecx, esi
push edx
push eax
call fcn.004f6910
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x3c]
push eax
push 0x636fe4
push ecx
call fcn.0056b4da
add esp, 0xc
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x3c]
push edx
mov edx, dword [esi + 0x74]
push eax
push 0
push 0
push ecx
push edx
mov dword [ebp - 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4f3dc6
push eax
lea eax, [ebp - 0x14]
push str.Error_reading_registry__errCode___d._End_rebuilding._n
push eax
call fcn.0057f8fb
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.004f1060
mov edx, dword [0x66253c]
mov ecx, dword [esi + 0x6c]
push edx
call fcn.004fa710
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00586b33
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00586b33
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00586b33
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00586b33
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x50]
push ecx
push edx
lea ecx, [ebp - 0x3c]
push eax
push ecx
lea edx, [ebp - 0x14]
push str.Read_record_num.__s_from_registry:_ID___d__startPos___I64d__nextID___d_n
push edx
call fcn.0057f8fb
mov eax, dword [ebp - 0x14]
add esp, 0x1c
mov ecx, esi
push eax
call fcn.004f1060
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x18]
push ecx
push edx
lea eax, [ebp - 0x1c]
push str._s_d
push eax
call fcn.0057f8fb
mov eax, dword [ebp - 0x1c]
add esp, 0x10
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x24]
push ecx
push edx
push eax
call fcn.004f38f0
add esp, 0xc
test eax, eax
jne 0x4f3e4b
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x1c]
push ecx
push edx
lea eax, [ebp - 0x14]
push str.Err_1275__f_s__e_ld._n
push eax
call fcn.0057f8fb
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push ecx
mov ecx, esi
call fcn.004f1060
mov eax, dword [ebp - 0x20]
test eax, eax
jl 0x4f4242
jg 0x4f3e63
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jbe 0x4f4242
mov edx, dword [ebp - 0x24]
mov ebx, dword [esi + 0x38]
add ebx, edx
mov byte [ebp + 0xb], 0
mov dword [esi + 0x38], ebx
mov ecx, dword [esi + 0x3c]
adc ecx, eax
test edi, edi
mov dword [esi + 0x3c], ecx
je 0x4f3e96
mov eax, dword [ebp - 0x18]
push edi
push eax
lea ecx, [ebp - 0x2c]
push str._s_d
push ecx
call fcn.0057f8fb
add esp, 0x10
jmp 0x4f3eab
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
push edx
push 0x636fa0
push eax
call fcn.0057f8fb
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4f3fb1
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push edx
push str.Error_opening_file__s._n
push eax
call fcn.0057f8fb
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.004f1060
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
push ecx
push edx
push eax
lea ecx, [ebp - 0x14]
push str.this_file__s__size__I64d_n
push ecx
call fcn.0057f8fb
mov edx, dword [ebp - 0x14]
add esp, 0x14
mov ecx, esi
push edx
call fcn.004f1060
mov eax, dword [ebp - 0x44]
mov ecx, eax
mov dword [ebp + 0x10], eax
sar ecx, 0x1f
test eax, eax
jbe 0x4f41a9
mov ecx, dword [ebp - 0x1c]
mov edx, eax
lea eax, [ebp - 0x60]
push edx
push eax
push ecx
push ebx
mov ecx, esi
call fcn.004f33b0
push ebx
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
cmp eax, 0x757c
je 0x4f4242
mov ebx, eax
test ebx, ebx
je 0x4f404a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00586b33
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00586b33
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00586b33
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00586b33
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
je 0x4f3ef4
lea edx, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
jne 0x4f4010
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4f4010
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [ebp - 0x58], eax
je 0x4f4010
push eax
lea eax, [ebp - 0x14]
push str.Error_during_GetFileSize____errcode___d._n
push eax
call fcn.0057f8fb
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.004f1060
jmp 0x4f3ef4
mov edx, dword [ebp + 0x10]
push 1
push 0
push 0
push edx
call fcn.0056d280
mov ecx, dword [ebp - 0x24]
push 2
add ecx, eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x20]
push eax
push 0
adc ecx, edx
push ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x54], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4f3efc
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x68]
push edx
push str._skf
push eax
call fcn.0056b4da
add esp, 0xc
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x80]
lea eax, [ebp - 0x68]
push ecx
mov ecx, dword [esi + 0x74]
push edx
push 0
push 0
push eax
push ecx
mov dword [ebp - 0x40], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4f4090
push str.error____No_keyframe_found_0__n
mov ecx, esi
call fcn.004f1060
mov eax, dword [esi + 0x74]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea edx, [ebp - 0x3c]
push edx
push eax
call ebx
mov edx, dword [esi + 0x74]
lea ecx, [ebp - 0x68]
push ecx
push edx
call ebx
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x14]
push eax
push str.Deleting_record__s_from_registry_n
push ecx
call fcn.0057f8fb
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, esi
push edx
call fcn.004f1060
push edi
lea eax, [ebp - 0x3c]
push 0x6390c4
push eax
call fcn.0056b4da
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
add esp, 0xc
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x50]
mov dword [ebp - 0x48], ecx
push 0x10
push eax
mov dword [ebp - 0x44], edx
mov edx, dword [esi + 0x74]
push 0
lea ecx, [ebp - 0x3c]
push 0
push ecx
push edx
mov dword [ebp - 0x50], edi
call ebx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
push eax
push ecx
push edx
push edi
lea eax, [ebp - 0x14]
push str.Adding_record_with_ID__d__startPos__I64d__nextID__d_n
push eax
call fcn.0057f8fb
mov ecx, dword [ebp - 0x14]
add esp, 0x18
push ecx
mov ecx, esi
call fcn.004f1060
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0056cd51
add esp, 4
cmp eax, 0xffffffff
jne 0x4f415f
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
push str.Could_not_delete_temp_file__s_n
push ecx
call fcn.0057f8fb
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, esi
push edx
call fcn.004f1060
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0x10]
xor eax, eax
sub ecx, edx
mov edx, dword [ebp - 0x20]
push edi
sbb edx, eax
mov eax, dword [ebp - 0x80]
add eax, ecx
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x68]
adc ecx, edx
push str._dkf
push eax
mov dword [ebp - 0x7c], ecx
call fcn.0056b4da
mov eax, dword [esi + 0x74]
add esp, 0xc
lea ecx, [ebp - 0x80]
lea edx, [ebp - 0x68]
push 0x10
push ecx
push 0
push 0
push edx
push eax
call ebx
jmp 0x4f3c9f
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x90]
push ecx
push str._skf
push edx
call fcn.0056b4da
add esp, 0xc
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0xa0]
lea edx, [ebp - 0x90]
push eax
mov eax, dword [esi + 0x74]
push ecx
push 0
push 0
push edx
push eax
mov dword [ebp - 0x6c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4f41fe
push str.No_keyframe_found_n
mov ecx, esi
call fcn.004f1060
mov byte [ebp + 0xb], 1
jmp 0x4f422c
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
mov edi, dword [ebp - 0x50]
push ecx
mov dword [ebp - 0x30], ecx
push eax
push edi
lea ecx, [ebp - 0x14]
push str.Set_curID__d__curPos__I64d_n
push ecx
mov dword [ebp - 0x34], eax
call fcn.0057f8fb
mov edx, dword [ebp - 0x14]
add esp, 0x14
mov ecx, esi
push edx
call fcn.004f1060
test ebx, ebx
je 0x4f4237
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0xb]
test al, al
je 0x4f3c9f
mov ecx, dword [esi + 0x74]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0x3c]
push eax
push ecx
call ebx
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x88]
push edx
push str._skf
push eax
call fcn.0056b4da
mov edx, dword [esi + 0x74]
add esp, 0xc
lea ecx, [ebp - 0x88]
push ecx
push edx
call ebx
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x14]
push eax
push str.Deleting_record__s_from_registry_n
push ecx
call fcn.0057f8fb
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, esi
push edx
call fcn.004f1060
push edi
lea eax, [ebp - 0x3c]
push 0x636fe4
push eax
call fcn.0056b4da
mov ecx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
add esp, 0xc
lea edx, [ebp - 0x50]
mov dword [ebp - 0x44], ecx
mov ecx, dword [esi + 0x74]
push 0x10
push edx
push 0
lea eax, [ebp - 0x3c]
push 0
push eax
push ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x30]
push edx
push eax
push ebx
push edi
lea ecx, [ebp - 0x14]
push str.Adding_record_with_ID__d__startPos__I64d__nextID__d_n
push ecx
call fcn.0057f8fb
mov edx, dword [ebp - 0x14]
add esp, 0x18
mov ecx, esi
push edx
call fcn.004f1060
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0056cd51
mov ecx, dword [ebp - 0x1c]
add esp, 4
cmp eax, 0xffffffff
push ecx
jne 0x4f432c
lea edx, [ebp - 0x14]
push str.Could_not_delete_temp_file__s_n
push edx
call fcn.0057f8fb
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, esi
push eax
call fcn.004f1060
jmp 0x4f3c9f
lea edx, [ebp - 0x14]
push str.Delete_temp_file__s_n
push edx
call fcn.0057f8fb
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, esi
push eax
call fcn.004f1060
jmp 0x4f3c9f
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
lea edx, [ebp - 0x5c]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
push edx
call fcn.0057f8fb
add esp, 0x10
mov eax, dword [ebx]
test eax, eax
je 0x4f4373
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x5c]
push 0
push ebx
push 0
push 0xf003f
push 0
push 0x660ff8
push 0
push eax
push reloc.WSOCK32.dll_accept
mov dword [ebp - 4], 7
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
push 0
mov ecx, dword [ebx]
lea edi, [esi + 0x60]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x4f43d5
push str.Cannot_find_registry_subkeys_counter._n
mov ecx, esi
call fcn.004f1060
mov dword [edi], 0
jmp 0x4f4413
mov eax, dword [edi]
shr eax, 1
mov dword [edi], eax
mov edx, dword [0x65ca8c]
mov edi, eax
mov dword [ebp - 0x54], edx
push edi
lea eax, [ebp - 0x54]
push str.Values_counter_in_the_registry_subkey___d_n
push eax
mov byte [ebp - 4], 0xa
call fcn.0057f8fb
mov ecx, dword [ebp - 0x54]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.004f1060
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 7
call fcn.00586b33
mov ecx, esi
mov dword [esi + 0x68], 1
call fcn.004f44a0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
call fcn.00586b33
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00586b33
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00586b33
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00586b33
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00586b33
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc