Function at 0x592450
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc6f4
call fcn.005e86e0
mov eax, dword [0x6d5db8]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov dword [ebp - 0xc6f0], ecx
cmp dword [ebp + 8], 0
jge 0x59247b
xor eax, eax
jmp 0x592770
push 0xa0
call fcn.005c4745
add esp, 4
mov dword [ebp - 0xc6e4], eax
mov eax, dword [ebp - 0xc6e4]
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 - 0xc6f0]
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 ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ecx + 0x10], eax
mov edx, dword [edx + 0xc]
mov dword [ecx + 0x14], edx
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
push 0x60
push 0
lea ecx, [ebp - 0x68]
push ecx
call fcn.005e5330
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0xc6f4], eax
cmp dword [ebp - 0xc6f4], 4
ja case.default.0x59259d
mov ecx, dword [ebp - 0xc6f4]
jmp dword [ecx*4 + 0x592784]
mov dword [ebp - 0x64], 0xff
jmp 0x5925d8
mov dword [ebp - 0x64], 2
jmp 0x5925d8
mov dword [ebp - 0x64], 1
jmp 0x5925d8
mov dword [ebp - 0x64], 0
jmp 0x5925d8
mov dword [ebp - 0x64], 6
jmp 0x5925d8
mov dword [ebp - 0x64], 0xff
mov dword [ebp - 0x60], 0xff
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x6c], 0
push 0xc668
push 0
lea edx, [ebp - 0xc6d8]
push edx
call fcn.005e5330
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
add ecx, 1
mov edx, dword [eax + 0xc]
adc edx, 0
mov dword [ebp - 0x68], ecx
lea eax, [ebp - 0x6c]
push eax
push 0xc668
lea ecx, [ebp - 0xc6d8]
push ecx
push 0
push 0x426
mov edx, dword [ebp + 8]
sub edx, 1
push edx
call dword [sym.imp.HCNetSDK.dll_NET_DVR_GetDVRConfig]
test eax, eax
je 0x59265b
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
add ecx, 1
mov edx, dword [eax + 0xc]
adc edx, 0
mov eax, dword [ebp - 0xc6c8]
xor esi, esi
add ecx, eax
adc edx, esi
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x5c]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x60]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x64]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x68]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x6c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x70]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x74]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x78]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x7c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x84]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x88]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp + 8]
sub edx, 1
push edx
call dword [sym.imp.HCNetSDK.dll_NET_DVR_FindFile_V30]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jae 0x59270c
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc6e8], eax
mov ecx, dword [ebp - 0xc6e8]
push ecx
call fcn.005c4775
add esp, 4
xor eax, eax
jmp 0x592770
mov edx, dword [ebp - 0xc6f0]
mov eax, dword [ebp + 0x14]
mov dword [edx + 0x3c], eax
mov ecx, dword [ebp - 0xc6f0]
mov edx, dword [ebp + 0x18]
mov dword [ecx + 0x40], edx
lea eax, [ebp - 0xc6e0]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
push 0x5927a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc6dc], eax
cmp dword [ebp - 0xc6dc], 0
jne 0x59276b
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc6ec], edx
mov eax, dword [ebp - 0xc6ec]
push eax
call fcn.005c4775
add esp, 4
xor eax, eax
jmp 0x592770
mov eax, 1
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005e5163
mov esp, ebp
pop ebp
ret 0x14