Function at 0x4c7910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x58d829
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], 2
mov eax, dword [esi + 0x578]
cmp eax, 5
ja case.0x4c7948.2
jmp dword [eax*4 + 0x4c7e8c]
mov eax, dword [0x5fd3dc]
test eax, eax
je case.0x4c7948.2
mov eax, dword [0x5fd404]
test eax, eax
je case.0x4c7948.2
push ecx
lea eax, [esi + 0x570]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x750]
lea edx, [esi + 0x74c]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call dword [0x5fd404]
jmp 0x4c79cd
mov eax, dword [0x5fd3dc]
test eax, eax
je case.0x4c7948.2
mov eax, dword [0x5fd408]
test eax, eax
je case.0x4c7948.2
push ecx
lea edx, [esi + 0x570]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_3
lea eax, [esi + 0x750]
lea ecx, [esi + 0x74c]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call dword [0x5fd408]
add esp, 0x10
mov dword [esi + 0x758], eax
mov eax, dword [esi + 0x758]
test eax, eax
je case.0x4c7948.0
mov eax, dword [esp + 0x10]
test eax, eax
je case.0x4c7948.0
mov eax, dword [0x5ec004]
mov ebp, 4
cmp eax, ebp
jl 0x4c7bf5
mov al, byte [0x603d39]
test al, 1
jne 0x4c7a1f
or al, 1
mov byte [0x603d39], al
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
mov dword [0x603d3c], eax
mov eax, dword [0x603d3c]
test eax, eax
je 0x4c7bf5
push 1
push 2
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov dword [esp + 0x6c], 0x5aa32c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x190], 0
push ecx
lea ecx, [esp + 0x70]
call fcn.004ba4f0
mov edi, eax
mov byte [esp + 0x190], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push 0x5e2b64
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
push eax
push 0x5ec000
push 0x5e2b64
push ebx
lea edx, [esp + 0x88]
push 0x5ec000
push edx
call edi
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push eax
call edi
add esp, 8
push eax
call edi
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push eax
call edi
add esp, 8
push eax
call sub.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x190], 0
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [esp + 0x4c]
push ebp
push eax
call fcn.004ba680
add esp, 8
push 0x5ebffc
push eax
lea ecx, [esp + 0x78]
push 0x5ebff8
push ecx
mov byte [esp + 0x1a0], 2
call edi
add esp, 8
push eax
call sub.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 8
push eax
call edi
add esp, 8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x190], 0
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edx, [esp + 0x17]
lea ecx, [esp + 0x2c]
push edx
push 9
push 0
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_unsigned_int__char__class_std::allocator_char__const__]
mov byte [esp + 0x190], 3
push eax
lea eax, [esp + 0x74]
push eax
call sub.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x190], 0
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [esi + 0x750]
mov edx, dword [esi + 0x74c]
push ecx
push 0x5ed1dc
push edx
lea eax, [esp + 0x7c]
push str.Camera_Image__Width_Height_:
push eax
call edi
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
push eax
call edi
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
mov dword [esp + 0x6c], 0x5aa328
lea ecx, [esp + 0x70]
mov dword [esp + 0x190], ebp
push ecx
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
add esp, 4
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x70]
push edx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
push eax
call fcn.004b0df0
add esp, 4
lea ecx, [esp + 0x2c]
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x70]
mov dword [esp + 0x190], 0xffffffff
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
lea ecx, [esp + 0xf8]
call fcn.0054ec96
lea ecx, [esp + 0x138]
mov dword [esp + 0x190], 5
call sub.MFC42.DLL_COleDispatchDriver::COleDispatchDriver
mov dword [esp + 0xf8], 0x5a86a0
lea edi, [esi + 0x42c]
lea eax, [esp + 0x6c]
push eax
mov ecx, edi
mov dword [esp + 0x194], 6
call fcn.00425550
lea ecx, [esp + 0x140]
push str.GrabCamera
mov bl, 7
push ecx
mov ecx, eax
mov byte [esp + 0x198], bl
call fcn.004530f0
push eax
lea ecx, [esp + 0xfc]
mov byte [esp + 0x194], 8
call fcn.004af620
lea ecx, [esp + 0x180]
mov byte [esp + 0x190], 9
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea ecx, [esp + 0x140]
mov byte [esp + 0x190], bl
call sub.MFC42.DLL_CWnd::CWnd
lea ecx, [esp + 0xac]
mov byte [esp + 0x190], 0xa
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea ecx, [esp + 0x6c]
mov byte [esp + 0x190], 6
call sub.MFC42.DLL_CWnd::CWnd
push str.hsImage8bppGreyScale
lea ecx, [esp + 0x20]
mov word [esp + 0x20], 0
call sub.MFC42.DLL_COleVariant::operator
lea edx, [esp + 0x140]
mov ecx, edi
push edx
mov byte [esp + 0x194], 0xb
call fcn.00425550
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x6c]
push ecx
push str.GrabCameraImage
mov bl, 0xc
push str.GrabCamera
push edx
mov ecx, eax
mov byte [esp + 0x1a0], bl
call fcn.00453220
lea edi, [esi + 0x704]
push eax
mov ecx, edi
mov byte [esp + 0x194], 0xd
call fcn.0046eba0
lea ecx, [esp + 0xac]
mov byte [esp + 0x190], 0xe
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea ecx, [esp + 0x6c]
mov byte [esp + 0x190], bl
call sub.MFC42.DLL_CWnd::CWnd
lea ecx, [esp + 0x180]
mov byte [esp + 0x190], 0xf
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
mov byte [esp + 0x190], 0xb
lea ecx, [esp + 0x140]
call sub.MFC42.DLL_CWnd::CWnd
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x194], 6
call ebp
mov ecx, dword [esi + 0x750]
push 3
push ecx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_COleVariant::COleVariant_1
mov ebx, eax
mov edx, dword [esi + 0x74c]
push 3
push edx
lea ecx, [esp + 0x64]
mov byte [esp + 0x198], 0x10
call sub.MFC42.DLL_COleVariant::COleVariant_1
push ebx
push eax
push 0
mov ecx, edi
mov byte [esp + 0x19c], 0x11
call fcn.0046cbc0
lea eax, [esp + 0x5c]
push eax
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0x190], 6
push ecx
call ebp
mov ecx, edi
call fcn.0046c020
mov dword [esi + 0x754], eax
mov eax, dword [esi + 0x750]
xor edx, edx
test eax, eax
jle 0x4c7e3c
mov eax, dword [esi + 0x74c]
xor ecx, ecx
test eax, eax
jle 0x4c7e31
mov edi, dword [esi + 0x750]
mov ebx, dword [esi + 0x758]
sub edi, edx
mov ebp, dword [esi + 0x754]
dec edi
imul edi, eax
imul eax, edx
add edi, ebx
add eax, ebp
mov bl, byte [edi + ecx]
mov byte [eax + ecx], bl
mov eax, dword [esi + 0x74c]
inc ecx
cmp ecx, eax
jl 0x4c7e01
mov eax, dword [esi + 0x750]
inc edx
cmp edx, eax
jl 0x4c7df5
lea ecx, [esp + 0x138]
mov dword [esp + 0x190], 0x12
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea ecx, [esp + 0xf8]
mov dword [esp + 0x190], 0xffffffff
call sub.MFC42.DLL_CWnd::CWnd
mov al, 1
jmp 0x4c7e70
xor al, al
mov ecx, dword [esp + 0x188]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x184
ret