Function at 0x592bb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc68c
call fcn.005e86e0
mov eax, dword [0x6d5db8]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0xc68c], ecx
cmp dword [ebp + 8], 0
jge 0x592bda
xor eax, eax
jmp 0x592db1
push 0xa0
call fcn.005c4745
add esp, 4
mov dword [ebp - 0xc684], eax
mov eax, dword [ebp - 0xc684]
mov dword [ebp - 4], eax
push 0xa0
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.005e5330
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc68c]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 0xc], eax
mov dword [ebp - 8], 0
push 0xc668
push 0
lea ecx, [ebp - 0xc678]
push ecx
call fcn.005e5330
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [edx + 0x10], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0x14], eax
lea ecx, [ebp - 8]
push ecx
push 0xc668
lea edx, [ebp - 0xc678]
push edx
push 0
push 0x426
mov eax, dword [ebp + 8]
sub eax, 1
push eax
call dword [sym.imp.HCNetSDK.dll_NET_DVR_GetDVRConfig]
test eax, eax
je 0x592c9a
mov ecx, dword [ebp - 0xc668]
xor edx, edx
mov eax, dword [ebp + 0xc]
add ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
adc eax, edx
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x20], edx
mov eax, dword [ebp + 0xc]
add eax, 0x5c
mov ecx, dword [ebp - 4]
add ecx, 0x64
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x10]
mov dword [ecx + 0x10], edx
mov eax, dword [eax + 0x14]
mov dword [ecx + 0x14], eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x74
mov edx, dword [ebp - 4]
add edx, 0x7c
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ecx + 0x14]
mov dword [edx + 0x14], ecx
push 0x40
mov edx, dword [ebp + 0xc]
add edx, 0x1c
push edx
mov eax, dword [ebp - 4]
add eax, 0x24
push eax
call fcn.005e58c0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x8c]
mov dword [ecx + 0x94], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0xc68c]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x3c], ecx
mov edx, dword [ebp - 0xc68c]
mov eax, dword [ebp + 0x18]
mov dword [edx + 0x40], eax
lea ecx, [ebp - 0xc680]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
push 0x592dd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc67c], eax
cmp dword [ebp - 0xc67c], 0
jne 0x592dac
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc688], eax
mov ecx, dword [ebp - 0xc688]
push ecx
call fcn.005c4775
add esp, 4
xor eax, eax
jmp 0x592db1
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005e5163
mov esp, ebp
pop ebp
ret 0x14