Function at 0x408680
Capabilities:
Create thread
Read .ini file
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d6869
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x629560]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004d7e29
mov edi, dword [0x648fc4]
mov eax, dword [edi + 0x58]
test eax, eax
mov dword [esp + 0x28], edi
jne 0x4086e2
call fcn.0041b340
jmp 0x408772
lea eax, [edi + 0x50]
push eax
mov dword [esp + 0x30], eax
call fcn.00459780
mov ecx, dword [edi + 0x58]
add esp, 4
test eax, eax
mov dword [edi + 0x64], ecx
jne 0x408703
call fcn.0041b340
jmp 0x408772
push 3
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x3c]
call fcn.00404d30
mov dword [esp + 0x148], 0
mov esi, dword [esp + 0x18]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x18], esp
mov edi, esp
push esi
call fcn.004053b0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00459590
add esp, 4
test eax, eax
jne 0x40874e
mov edi, dword [esp + 0x2c]
call fcn.004599c0
mov dword [esp + 0x148], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408772
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea eax, [ebx + 0x2580]
mov dword [esp + 0x14], eax
lea ecx, [ebx + 0x1080]
mov dword [eax], ecx
lea edx, [ebx + 0x10d4]
mov dword [ebx + 0x2584], edx
lea eax, [ebx + 0x1128]
mov dword [ebx + 0x2588], eax
lea ecx, [ebx + 0x117c]
mov dword [ebx + 0x258c], ecx
lea edx, [ebx + 0x11d0]
mov dword [ebx + 0x2590], edx
lea eax, [ebx + 0x1224]
mov dword [ebx + 0x2594], eax
lea ecx, [ebx + 0x1278]
mov dword [ebx + 0x2598], ecx
lea edx, [ebx + 0x12cc]
mov dword [ebx + 0x259c], edx
lea eax, [ebx + 0x1320]
mov dword [ebx + 0x25a0], eax
lea ecx, [ebx + 0x1374]
mov dword [ebx + 0x25a4], ecx
lea edx, [ebx + 0x13c8]
mov dword [ebx + 0x25a8], edx
lea eax, [ebx + 0x141c]
mov dword [ebx + 0x25ac], eax
lea ecx, [ebx + 0x1470]
mov dword [ebx + 0x25b0], ecx
lea edx, [ebx + 0x14c4]
mov dword [ebx + 0x25b4], edx
lea eax, [ebx + 0x1518]
mov dword [ebx + 0x25b8], eax
lea ecx, [ebx + 0x156c]
mov dword [ebx + 0x25bc], ecx
lea edx, [ebx + 0x15c0]
mov dword [ebx + 0x25c0], edx
lea eax, [ebx + 0x1614]
mov dword [ebx + 0x25c4], eax
lea ecx, [ebx + 0x1668]
mov dword [ebx + 0x25c8], ecx
lea edx, [ebx + 0x16bc]
mov dword [ebx + 0x25cc], edx
lea eax, [ebx + 0x1710]
mov dword [ebx + 0x25d0], eax
lea ecx, [ebx + 0x1764]
mov dword [ebx + 0x25d4], ecx
lea edx, [ebx + 0x17b8]
mov dword [ebx + 0x25d8], edx
lea eax, [ebx + 0x180c]
mov dword [ebx + 0x25dc], eax
lea ecx, [ebx + 0x1860]
mov dword [ebx + 0x25e0], ecx
lea edx, [ebx + 0x18b4]
mov dword [ebx + 0x25e4], edx
lea eax, [ebx + 0x1908]
mov dword [ebx + 0x25e8], eax
lea ecx, [ebx + 0x195c]
mov dword [ebx + 0x25ec], ecx
lea edx, [ebx + 0x19b0]
lea eax, [ebx + 0x1a04]
mov dword [ebx + 0x25f0], edx
mov dword [ebx + 0x25f4], eax
lea ecx, [ebx + 0x1a58]
mov dword [ebx + 0x25f8], ecx
lea edx, [ebx + 0x1aac]
lea eax, [ebx + 0x1b00]
mov dword [ebx + 0x25fc], edx
mov dword [ebx + 0x2600], eax
lea ecx, [ebx + 0x1b54]
lea edx, [ebx + 0x1ba8]
lea eax, [ebx + 0x1bfc]
mov dword [ebx + 0x2604], ecx
lea ecx, [ebx + 0x1c50]
mov dword [ebx + 0x2608], edx
mov dword [ebx + 0x260c], eax
lea edx, [ebx + 0x1ca4]
lea eax, [ebx + 0x1cf8]
mov dword [ebx + 0x2610], ecx
mov dword [ebx + 0x2614], edx
mov dword [ebx + 0x2618], eax
lea ecx, [ebx + 0x1d4c]
lea eax, [ebx + 0x1df4]
mov dword [ebx + 0x2624], eax
lea eax, [ebx + 0x1ef0]
mov dword [ebx + 0x2630], eax
lea eax, [ebx + 0x1fec]
mov dword [ebx + 0x263c], eax
lea eax, [ebx + 0x20e8]
mov dword [ebx + 0x2648], eax
mov dword [ebx + 0x261c], ecx
lea eax, [ebx + 0x21e4]
mov dword [ebx + 0x2654], eax
lea edx, [ebx + 0x1da0]
mov dword [ebx + 0x2620], edx
lea eax, [ebx + 0x22e0]
mov dword [ebx + 0x2660], eax
lea ecx, [ebx + 0x1e48]
mov dword [ebx + 0x2628], ecx
lea edx, [ebx + 0x1e9c]
mov dword [ebx + 0x262c], edx
lea eax, [ebx + 0x23dc]
mov dword [ebx + 0x266c], eax
lea ecx, [ebx + 0x1f44]
mov dword [ebx + 0x2634], ecx
lea edx, [ebx + 0x1f98]
mov dword [ebx + 0x2638], edx
lea eax, [ebx + 0x24d8]
mov dword [ebx + 0x2678], eax
mov eax, dword [ebx + 0xd24]
lea ecx, [ebx + 0x2040]
mov dword [ebx + 0x2640], ecx
lea edx, [ebx + 0x2094]
mov dword [ebx + 0x2644], edx
mov dword [ebx + 0xa4], eax
add eax, 0xffffff62
lea ecx, [ebx + 0x213c]
mov dword [ebx + 0x264c], ecx
lea edx, [ebx + 0x2190]
mov dword [ebx + 0x2650], edx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
lea ecx, [ebx + 0x2238]
mov dword [ebx + 0x2658], ecx
fmul qword [0x611738]
lea edx, [ebx + 0x228c]
mov dword [ebx + 0x265c], edx
lea ecx, [ebx + 0x2334]
fadd qword [0x611730]
lea edx, [ebx + 0x2388]
mov dword [ebx + 0x2664], ecx
mov dword [ebx + 0x2668], edx
lea ecx, [ebx + 0x2430]
lea edx, [ebx + 0x2484]
mov dword [ebx + 0x2670], ecx
mov dword [ebx + 0x2674], edx
mov edx, dword [ebx + 0xd20]
lea ecx, [ebx + 0x252c]
xor edi, edi
mov esi, 1
mov dword [ebx + 0x267c], ecx
mov dword [ebx + 0x98], edi
mov dword [ebx + 0x9c], edi
mov dword [ebx + 0xa0], edx
mov dword [ebx + 0xac], esi
mov dword [ebx + 0xb4], eax
mov dword [ebx + 0xa8], 0x78
call fcn.004fb970
mov dword [ebx + 0xb0], eax
call fcn.00458130
call fcn.004d4991
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x408afc
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov dword [esp + 0x148], esi
call fcn.004d4991
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x408b2d
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
push 0x64
lea ecx, [esp + 0x68]
push edi
push ecx
mov byte [esp + 0x154], 2
call fcn.004f9810
add esp, 0xc
call fcn.004d8c67
mov eax, dword [eax + 8]
push 0x64
lea edx, [esp + 0x68]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.004d4991
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x408b85
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 3
call fcn.0041c260
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x14c], 4
call fcn.00404f90
mov byte [esp + 0x148], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408be5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x24]
push 0x5c
push esi
call fcn.004f3288
add esp, 8
cmp eax, edi
jne 0x408bfd
or esi, 0xffffffff
jmp 0x408c01
sub eax, esi
mov esi, eax
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00404d30
push str.logo.bmp
push eax
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x154], 5
call fcn.00404db0
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x14c], 6
call fcn.00404f90
mov byte [esp + 0x148], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x148], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00404d30
push str.dvr.dat
push eax
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x154], 7
call fcn.00404db0
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x14c], 8
call fcn.00404f90
mov byte [esp + 0x148], 7
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408cf1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x148], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00404d30
push str._rtcc.tmp
push eax
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x154], 9
call fcn.00404db0
add esp, 0xc
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x14c], 0xa
call fcn.00404f90
mov byte [esp + 0x148], 9
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x148], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408da5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
push ecx
push 1
push str.UseDefaultLogo
push str.Logo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
je 0x408dfb
mov edx, dword [esp + 0x24]
push 0x2050
push edi
push edi
push edi
push edx
push edi
call dword [sym.imp.USER32.dll_LoadImageA]
cmp eax, edi
je 0x408def
push eax
mov eax, dword [ebx + 0xd4c]
push edi
push 0x172
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x408dfb
push edi
lea ecx, [ebx + 0xd2c]
call fcn.004e2336
call fcn.004d4991
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x408e15
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x148], 0xb
call fcn.004d4991
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x408e47
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
push edi
push 0x80
push 4
push edi
push 3
mov byte [esp + 0x15c], 0xc
mov ecx, dword [esp + 0x4c]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
je 0x408fd8
push 0x64
lea edx, [esp + 0xd0]
push edi
push edx
call fcn.004f9810
add esp, 0xc
push edi
lea eax, [esp + 0x40]
push eax
push 0x64
lea ecx, [esp + 0xd8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x3c], edi
je 0x408f3d
push 0x6fd
lea edx, [esp + 0x1c]
push edx
call fcn.00422af0
lea ecx, [esp + 0xcc]
mov byte [esp + 0x148], 0xd
mov eax, dword [eax]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
call fcn.004057d0
mov byte [esp + 0x154], 0xc
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408f14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov edi, esp
push eax
call fcn.004053b0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00458510
add esp, 4
jmp 0x408fd1
push 0
call fcn.004f4ccd
add esp, 4
lea ecx, [esp + 0x40]
push ecx
mov esi, 0x605f74
lea edi, [esp + 0x1c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
call fcn.00405ba0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x14c], 0xe
call fcn.00404f90
mov byte [esp + 0x148], 0xc
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408f9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x408fb9
mov ecx, esi
push ecx
lea ecx, [esp + 0x34]
call fcn.00405590
mov eax, dword [esp + 0x30]
push 0
lea edx, [esp + 0x4c]
push edx
push esi
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
call fcn.00415dd0
mov eax, ebx
call fcn.00415690
call fcn.00416260
call fcn.004145a0
push ebx
call fcn.004107f0
push ebx
call fcn.00410300
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0045bbb0
call fcn.0047b7b0
mov ecx, dword [ebx + 0xd24]
mov edx, eax
push ebx
lea eax, [ebx + 0xa8]
push eax
mov eax, dword [ebx + 0xd20]
mov dword [ebx + 0xd8], edx
mov ebx, edx
call fcn.0047d6b0
mov edi, esi
mov eax, dword [edi + 0xd8]
mov ecx, dword [eax + 0x3e60]
cmp ecx, 2
jg 0x409070
imul ecx, ecx, 0x320c
mov edx, 1
mov dword [ecx + eax + 0x3e70], edx
mov ecx, dword [eax + 0x3e60]
imul ecx, ecx, 0x320c
mov dword [ecx + eax + 0x3e78], 0xffffffff
add dword [eax + 0x3e60], edx
mov ecx, dword [edi + 0xd8]
push 5
call fcn.004e2336
mov eax, dword [edi + 0xd8]
xor ecx, ecx
mov dword [eax + 0xa3e4], 0xffffffff
cmp dword [eax + 0x3e70], ecx
je 0x4090ab
cmp dword [eax + 0x3e5c], ecx
je 0x4090ab
mov dword [eax + 0x3e5c], ecx
mov dword [eax + 0x3e54], ecx
mov esi, dword [edi + 0xd8]
lea ebx, [esi + 0xa3cc]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xa3b0]
test eax, eax
jbe 0x4090dd
add eax, 0xffffffff
mov dword [esi + 0xa3b0], eax
jne 0x4090dd
mov dword [esi + 0x3e58], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0
push 0
push 0x489860
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [edi + 0x8bc]
test eax, eax
je 0x409106
mov eax, dword [eax + 0x20]
push str.ButtonUp
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x910]
test eax, eax
je 0x40911e
mov eax, dword [eax + 0x20]
push str.ButtonLeft
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x964]
test eax, eax
je 0x409136
mov eax, dword [eax + 0x20]
push str.ButtonRight
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x9b8]
test eax, eax
je 0x40914e
mov eax, dword [eax + 0x20]
push str.ButtonDown
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0xa0c]
test eax, eax
je 0x409166
mov eax, dword [eax + 0x20]
push str.CheckBoxScan
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0xa60]
test eax, eax
je 0x40917e
mov eax, dword [eax + 0x20]
push str.ButtonZoomin
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0xab4]
test eax, eax
je 0x409196
mov eax, dword [eax + 0x20]
push str.ButtonZoomout
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0xb08]
test eax, eax
je 0x4091ae
mov eax, dword [eax + 0x20]
push str.ButtonZoomout
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0xb5c]
test eax, eax
je 0x4091c6
mov eax, dword [eax + 0x20]
push str.ButtonZoomin
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0xbb0]
test eax, eax
je 0x4091de
mov eax, dword [eax + 0x20]
push str.ButtonZoomin
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0xc04]
test eax, eax
je 0x4091f6
mov eax, dword [eax + 0x20]
push str.ButtonZoomout
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0xc58]
test eax, eax
je 0x40920e
mov eax, dword [eax + 0x20]
push str.CheckBoxLight
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0xcac]
test eax, eax
je 0x409226
mov eax, dword [eax + 0x20]
push str.CheckBoxBrush
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0xed4]
test eax, eax
je 0x40923e
mov eax, dword [eax + 0x20]
push str.ButtonPtzSet
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0xe80]
test eax, eax
je 0x409256
mov eax, dword [eax + 0x20]
push str.ButtonPtzGo
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x3408]
test eax, eax
je 0x40926e
mov eax, dword [eax + 0x20]
push str.CheckBoxLocal
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x345c]
test eax, eax
je 0x409286
mov eax, dword [eax + 0x20]
push str.CheckBoxLocal
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x26a8]
test eax, eax
je 0x40929e
mov eax, dword [eax + 0x20]
push str.ButtonStartAll
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x26fc]
test eax, eax
je 0x4092b6
mov eax, dword [eax + 0x20]
push str.ButtonStopAll
push eax
call sub.intfd.dll_Ordinal_46
mov esi, dword [esp + 0x14]
mov ebx, 0x40
lea ebx, [ebx]
mov eax, dword [esi]
test eax, eax
je 0x4092d9
mov eax, dword [eax + 0x20]
push str.CheckBoxStatusP
push eax
call sub.intfd.dll_Ordinal_46
add esi, 4
sub ebx, 1
jne 0x4092d0
lea eax, [edi + 0x3018]
test eax, eax
je 0x4092f9
mov eax, dword [eax + 0x20]
push str.ButtonPage4
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x306c]
test eax, eax
je 0x409311
mov eax, dword [eax + 0x20]
push str.ButtonPage6
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x30c0]
test eax, eax
je 0x409329
mov eax, dword [eax + 0x20]
push str.ButtonPage8
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x3114]
test eax, eax
je 0x409341
mov eax, dword [eax + 0x20]
push str.ButtonPage9
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x3168]
test eax, eax
je 0x409359
mov eax, dword [eax + 0x20]
push str.ButtonPage10
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x31bc]
test eax, eax
je 0x409371
mov eax, dword [eax + 0x20]
push str.ButtonPage16
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x3210]
test eax, eax
je 0x409389
mov eax, dword [eax + 0x20]
push str.ButtonPage25
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x3264]
test eax, eax
je 0x4093a1
mov eax, dword [eax + 0x20]
push str.ButtonPage36
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x32b8]
test eax, eax
je 0x4093b9
mov eax, dword [eax + 0x20]
push str.ButtonFullScreen
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x330c]
test eax, eax
je 0x4093d1
mov eax, dword [eax + 0x20]
push str.ButtonPageUp
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x3360]
test eax, eax
je 0x4093e9
mov eax, dword [eax + 0x20]
push str.ButtonPageDown
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x33b4]
test eax, eax
je 0x409401
mov eax, dword [eax + 0x20]
push str.CheckBoxPageCycle
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x28f4]
test eax, eax
je 0x409419
mov eax, dword [eax + 0x20]
push str.ButtonExit
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x2aec]
test eax, eax
je 0x409431
mov eax, dword [eax + 0x20]
push str.ButtonHelp
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x29f0]
test eax, eax
je 0x409449
mov eax, dword [eax + 0x20]
push str.CheckBoxLogin
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x2a98]
test eax, eax
je 0x409461
mov eax, dword [eax + 0x20]
push str.ButtonConfig
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x2948]
test eax, eax
je 0x409479
mov eax, dword [eax + 0x20]
push str.ButtonMinimize
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x2a44]
test eax, eax
je 0x409491
mov eax, dword [eax + 0x20]
push str.ButtonPlayback
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x299c]
test eax, eax
je 0x4094a9
mov eax, dword [eax + 0x20]
push str.ButtonLog
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x7c0]
test eax, eax
je 0x4094c1
mov eax, dword [eax + 0x20]
push str.ButtonSnapShot
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x2fb8]
test eax, eax
je 0x4094d9
mov eax, dword [eax + 0x20]
push str.CheckBoxAudio
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x2b40]
test eax, eax
je 0x4094f1
mov eax, dword [eax + 0x20]
push str.ButtonRemote
push eax
call sub.intfd.dll_Ordinal_46
lea eax, [edi + 0x34b0]
test eax, eax
je 0x409509
mov eax, dword [eax + 0x20]
push str.CheckBoxPTZ
push eax
call sub.intfd.dll_Ordinal_46
push 0x404
mov ecx, edi
call fcn.004e2175
test eax, eax
je 0x409527
mov eax, dword [eax + 0x20]
push str.Static1
push eax
call sub.intfd.dll_Ordinal_46
push 0x405
mov ecx, edi
call fcn.004e2175
test eax, eax
je 0x409545
mov eax, dword [eax + 0x20]
push str.Static1
push eax
call sub.intfd.dll_Ordinal_46
push 0x406
mov ecx, edi
call fcn.004e2175
test eax, eax
je 0x409563
mov eax, dword [eax + 0x20]
push str.Static1
push eax
call sub.intfd.dll_Ordinal_46
push 0x644568
push 0x18
push 8
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.0123456789_:
mov esi, 0x645e28
mov ebx, 0x644ce8
call fcn.0041c260
mov edx, esi
mov ecx, ebx
call fcn.004587d0
add esp, 0x10
push 0x6465a8
push 0x18
push 8
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6061c8
mov esi, 0x646128
mov ebx, 0x644928
call fcn.0041c260
mov edx, esi
mov ecx, ebx
call fcn.004587d0
add esp, 0x10
push 0x644aa8
push 0x18
push 8
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6061cc
mov esi, 0x6438a8
mov ebx, 0x6455e8
call fcn.0041c260
mov edx, esi
mov ecx, ebx
call fcn.004587d0
add esp, 0x10
push 0x642fa8
push 0x18
push 8
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6061d0
mov esi, 0x642768
mov ebx, 0x6447a8
call fcn.0041c260
mov edx, esi
mov ecx, ebx
call fcn.004587d0
add esp, 0x10
push 0x643668
push 0x18
push 8
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6061d4
mov esi, 0x643368
mov ebx, 0x644b68
call fcn.0041c260
mov edx, esi
mov ecx, ebx
call fcn.004587d0
add esp, 0x10
push 0x6464e8
push 0x18
push 8
push ecx
mov esi, 0x643068
mov ebx, 0x6443e8
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6061d8
call fcn.0041c260
mov edx, esi
mov ecx, ebx
call fcn.004587d0
add esp, 0x10
push 0x643ea8
push 0x18
push 8
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6061dc
mov esi, 0x645768
mov ebx, 0x6422e8
call fcn.0041c260
mov edx, esi
mov ecx, ebx
call fcn.004587d0
add esp, 0x10
push 0x642228
push 0x18
push 8
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6061e0
mov esi, 0x643f68
mov ebx, 0x643c68
call fcn.0041c260
mov edx, esi
mov ecx, ebx
call fcn.004587d0
add esp, 0x10
push 0x645d68
push 0x18
push 8
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6061e4
mov esi, 0x642be8
mov ebx, 0x644268
call fcn.0041c260
mov edx, esi
mov ecx, ebx
call fcn.004587d0
add esp, 0x10
push 0x643de8
push 0x18
push 8
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6061e8
mov esi, 0x645a68
mov ebx, 0x643728
call fcn.0041c260
mov edx, esi
mov ecx, ebx
call fcn.004587d0
add esp, 0x10
push 0x643ba8
push 0x18
push 8
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6061ec
mov esi, 0x6452e8
mov ebx, 0x645168
call fcn.0041c260
mov edx, esi
mov ecx, ebx
call fcn.004587d0
add esp, 0x10
push 0x646428
push 0x18
mov esi, 0x642468
mov ebx, 0x644628
push 8
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6061f0
call fcn.0041c260
mov edx, esi
mov ecx, ebx
call fcn.004587d0
add esp, 0x10
push 0x642ee8
push 0x18
push 8
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6061f4
mov esi, 0x644e68
mov ebx, 0x642a68
call fcn.0041c260
mov edx, esi
mov ecx, ebx
call fcn.004587d0
mov eax, dword [0x648fc0]
add esp, 0x10
test eax, eax
jne 0x409808
push 0x8490
call fcn.004d3c8b
add esp, 4
test eax, eax
je 0x409801
mov esi, eax
call fcn.0044f4c0
jmp 0x409803
xor eax, eax
mov dword [0x648fc0], eax
mov esi, eax
mov dword [edi + 0xdc], eax
call fcn.0044f610
call fcn.00448330
mov esi, dword [edi + 0x2690]
cmp dword [edi + 0x268c], esi
mov edx, dword [eax]
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], 0
jbe 0x40983f
call fcn.004f410b
mov ebx, dword [edi + 0x268c]
cmp ebx, dword [edi + 0x2690]
jbe 0x409852
call fcn.004f410b
cmp ebx, esi
je 0x409889
mov eax, dword [edi + 0x2690]
sub eax, esi
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea edx, [ebx + ecx]
mov dword [esp + 0x14], edx
jle 0x40987f
push ecx
push esi
push ecx
push ebx
call fcn.004f2728
add esp, 0x10
mov eax, dword [esp + 0x14]
mov dword [edi + 0x2690], eax
cmp dword [esp + 0x1c], 0
je 0x409ba8
mov ebx, dword [esp + 0x34]
add ebx, 0x10
push ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x18
call fcn.004d3c8b
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x148], 0xf
je 0x4098d2
mov ecx, dword [esp + 0x1c]
push eax
call fcn.00447d80
mov esi, eax
mov dword [esp + 0x1c], eax
jmp 0x4098d8
xor esi, esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x148], 0xc
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
test al, al
je 0x409b86
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
push 0
push 0x62ca5c
push 0x62ca48
mov esi, eax
push 0
push esi
call fcn.004f3cd7
add esp, 0x14
test eax, eax
push 0
je 0x4099fc
push 0x62ca5c
push 0x62ca48
push 0
push esi
call fcn.004f3cd7
mov ebx, eax
add esp, 0x14
cmp dword [ebx + 0x170], 1
jne 0x409960
mov edx, dword [ebx]
mov eax, dword [edx + 0x2c]
mov ecx, ebx
call eax
cmp dword [ebx + 0x7cf4], 0x258
jne 0x409958
push 0x64
jmp 0x40995a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [edi + 0x268c]
test ecx, ecx
lea esi, [edi + 0x2688]
mov dword [esp + 0x14], ebx
jne 0x409978
xor edx, edx
jmp 0x409980
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 2
test ecx, ecx
je 0x40999d
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x40999d
mov eax, dword [esi + 8]
mov dword [eax], ebx
add eax, 4
mov dword [esi + 8], eax
jmp 0x4099bc
mov ebx, dword [esi + 8]
cmp ecx, ebx
jbe 0x4099a9
call fcn.004f410b
push ebx
push esi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x4c]
push edx
mov eax, esi
call fcn.0041c870
mov eax, dword [edi + 0x2680]
mov ecx, dword [edi + eax*4 + 0x2580]
push 1
call fcn.004e2372
mov ecx, dword [edi + 0x2680]
mov eax, dword [edi + ecx*4 + 0x2580]
mov edx, dword [eax + 0x20]
push 0
push 1
push 0xf1
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
add dword [edi + 0x2680], 1
jmp 0x409b64
push 0x62ca70
push 0x62ca48
push 0
push esi
call fcn.004f3cd7
add esp, 0x14
test eax, eax
je 0x409abe
push 0
push 0x62ca70
push 0x62ca48
push 0
push esi
call fcn.004f3cd7
mov ebx, eax
add esp, 0x14
cmp dword [ebx + 0x170], 1
jne 0x409a4c
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c]
mov ecx, ebx
call edx
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi + 0x269c]
test eax, eax
lea esi, [edi + 0x2698]
mov dword [esp + 0x14], ebx
jne 0x409a64
xor edx, edx
jmp 0x409a6c
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x409a93
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x409a93
mov eax, dword [esi + 8]
mov dword [eax], ebx
add eax, 4
mov dword [esi + 8], eax
add dword [edi + 0x2684], 1
jmp 0x409b64
mov ebx, dword [esi + 8]
cmp eax, ebx
jbe 0x409a9f
call fcn.004f410b
push ebx
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x58]
push ecx
mov eax, esi
call fcn.0041c870
add dword [edi + 0x2684], 1
jmp 0x409b64
mov ebx, dword [esp + 0x28]
cmp dword [ebx + 0x168], 0
je 0x409b64
push 0
push 0x62ca84
push 0x62ca48
push 0
push esi
call fcn.004f3cd7
add esp, 0x14
test eax, eax
je 0x409b64
push 0
push 0x62ca84
push 0x62ca48
push 0
push esi
call fcn.004f3cd7
mov esi, eax
mov eax, dword [ebx + 0x16c]
xor ecx, ecx
add esp, 0x14
test eax, eax
setne cl
test ecx, ecx
je 0x408af2
mov ecx, dword [esi + 0x14]
push eax
push ecx
call fcn.004f4e25
add esp, 8
test eax, eax
sete al
test al, al
je 0x409b64
mov eax, dword [ebx + 0x170]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x408af2
mov ecx, dword [esi + 0x3c]
push eax
push ecx
call fcn.004f4e25
add esp, 8
test eax, eax
sete al
test al, al
je 0x409b64
mov dword [ebx + 0x20], esi
mov dword [esp + 0x18], 1
mov esi, dword [esp + 0x1c]
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
test al, al
jne 0x4098f1
mov ebx, dword [esp + 0x34]
mov eax, esi
call fcn.00447e10
push esi
call fcn.004d3cb6
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x18], 0
jne 0x409c66
mov ebx, dword [esp + 0x28]
cmp dword [ebx + 0x168], 0
je 0x409c6a
call fcn.004d4991
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409bd3
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x155
lea ecx, [esp + 0x18]
mov bl, 0x10
push ecx
mov byte [esp + 0x150], bl
call fcn.00422af0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 0x11
call fcn.00404f90
mov byte [esp + 0x148], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409c34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
push 0
push 0
push esi
call fcn.004d5d86
lea eax, [esi - 0x10]
mov byte [esp + 0x148], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409c66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x28]
cmp dword [ebx + 0x78], 0
je 0x409c92
mov eax, dword [ebx + 0xc8]
test eax, eax
jbe 0x409c92
cmp byte [ebx + 0xfc], 0
je 0x409c8c
cmp dword [0x648fac], 0
ja 0x409c92
push eax
call fcn.004881d0
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.ole32.dll_CoCreateGuid]
movzx eax, word [esp + 0x58]
cdq
mov ecx, 0x7b
idiv ecx
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0xea60
push 0x3d
add edx, 0xf3
mov dword [edi + 0x3010], edx
mov edx, dword [edi + 0x20]
push edx
call esi
mov eax, dword [edi + 0x20]
push 0
push 0x3e8
push 0x3e
push eax
call esi
mov ecx, dword [edi + 0x20]
push 0
push 0x7d0
push 0x42
push ecx
call esi
mov edx, dword [edi + 0x20]
push 0
push 0x2710
push 0x40
push edx
call esi
mov eax, dword [edi + 0x20]
push 0
push 0x493e0
push 0x41
push eax
call esi
mov ecx, dword [edi + 0x20]
push 0
push 0x1b7740
push 0x43
push ecx
call esi
mov edx, dword [edi + 0xd24]
mov eax, dword [edi + 0xd20]
push 0x40
push edx
push eax
push 0
push 0
push 0
mov ecx, edi
call fcn.004e2541
mov esi, 5
call fcn.00416130
mov eax, edi
call fcn.00415d70
xor esi, esi
call fcn.00416490
mov ecx, 0x649948
call fcn.004df627
cmp dword [ebx + 0xf0], esi
je 0x409d6a
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.hook.dll_setMyHook]
add esp, 4
push 0
push 0x3e9
mov ecx, edi
call fcn.004e2175
mov ecx, eax
call fcn.004e2336
mov byte [esp + 0x148], 0xb
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409da7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x148], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409dcf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x148], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409df7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x148], 1
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409e1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x148], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409e4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004f2719
mov esp, ebp
pop ebp
ret