Function at 0x435130
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x4f66e0]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0xbc], ecx
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 0x1720]
push ecx
mov ecx, dword [ebp - 0xbc]
add ecx, 0x1680
call fcn.004b51fb
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx + 0x1720]
push eax
mov ecx, dword [ebp - 0xbc]
add ecx, 0x1374
call fcn.004b51fb
mov ecx, dword [ebp - 0xbc]
cmp dword [ecx + 0x1720], 0
je 0x4351ad
mov edx, dword [ebp - 0xbc]
cmp dword [edx + 0x1724], 0
je 0x4351ad
mov dword [ebp - 0xc0], 1
jmp 0x4351b7
mov dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0xc0]
push eax
mov ecx, dword [ebp - 0xbc]
add ecx, 0x157c
call fcn.004b51fb
mov ecx, dword [ebp - 0xbc]
cmp dword [ecx + 0x1720], 0
je 0x4351f9
mov edx, dword [ebp - 0xbc]
cmp dword [edx + 0x1724], 0
je 0x4351f9
mov dword [ebp - 0xc4], 1
jmp 0x435203
mov dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0xc4]
push eax
mov ecx, dword [ebp - 0xbc]
add ecx, 0x1478
call fcn.004b51fb
push 0
push 0
push 0x31
mov ecx, dword [ebp - 0xbc]
mov edx, dword [ecx + 0x1598]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
push eax
call fcn.004b8be8
mov dword [ebp - 4], eax
mov dword [ebp - 8], 7
cmp dword [ebp - 4], 0
je 0x4352e9
lea ecx, [ebp - 0x70]
push ecx
push 0x5c
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x4352e9
mov ecx, dword [ebp - 0xbc]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004b88eb
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x43529c
mov dword [ebp - 0xc8], 0
jmp 0x4352a8
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc8], ecx
push 0x5a
mov edx, dword [ebp - 0xc8]
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 0x48
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebp - 0x74]
sub edx, 2
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xbc]
add ecx, 0x157c
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx + 0x157c]
call dword [eax + 0x158]
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0xbc]
add ecx, 0x1478
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx + 0x1478]
call dword [eax + 0x158]
mov ecx, dword [ebp - 0xbc]
cmp dword [ecx + 0x1720], 0
je 0x435357
mov edx, dword [ebp - 0xbc]
cmp dword [edx + 0x1724], 0
je 0x435357
mov dword [ebp - 0xcc], 1
jmp 0x435361
mov dword [ebp - 0xcc], 0
mov eax, dword [ebp - 0xcc]
push eax
mov ecx, dword [ebp - 0xbc]
add ecx, 0x16d0
call fcn.004b51fb
mov ecx, dword [ebp - 0xbc]
cmp dword [ecx + 0x1720], 0
je 0x4353a3
mov edx, dword [ebp - 0xbc]
cmp dword [edx + 0x1724], 0
je 0x4353a3
mov dword [ebp - 0xb8], 1
jmp 0x4353ad
mov dword [ebp - 0xb8], 0
push 0
mov eax, dword [ebp - 0xb8]
push eax
push 0xf1
mov ecx, dword [ebp - 0xbc]
mov edx, dword [ecx + 0x169c]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0xbc]
cmp dword [eax + 0x1720], 0
je 0x4355a1
mov ecx, dword [ebp - 0xbc]
cmp dword [ecx + 0x1724], 0
je 0x4355a1
lea edx, [ebp - 0x8c]
push edx
push 0
push 0x41a
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 0x16ec]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
lea edx, [ebp - 0x8c]
push edx
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx + 0x16ec]
push eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea ecx, [ebp - 0xa0]
push ecx
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx + 0x174c]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea ecx, [ebp - 0xa0]
push ecx
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx + 0x1c]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [ebp - 0x98]
sub ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0xbc]
movzx eax, byte [edx + 0x1729]
sub eax, 1
mov ecx, dword [ebp - 0x84]
sub ecx, dword [ebp - 0x8c]
imul eax, ecx
cdq
mov ecx, 0xfd
idiv ecx
add eax, dword [ebp - 0x8c]
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
cmp edx, dword [ebp - 0x84]
je 0x4354c8
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x8c]
jne 0x435526
lea ecx, [ebp - 0xb0]
push ecx
push 0
push 0x419
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx + 0x16ec]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x7c]
cmp ecx, dword [ebp - 0x8c]
jne 0x43550d
mov eax, dword [ebp - 0xa8]
sub eax, dword [ebp - 0xb0]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x7c]
mov dword [ebp - 0x7c], eax
jmp 0x435526
mov eax, dword [ebp - 0xa8]
sub eax, dword [ebp - 0xb0]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x7c]
sub edx, eax
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x90]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x7c]
sub ecx, eax
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0x7c]
add eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], eax
push 5
mov ecx, dword [ebp - 0xbc]
add ecx, 0x1730
call fcn.004b51bf
push 1
mov ecx, dword [ebp - 0x94]
sub ecx, dword [ebp - 0x9c]
push ecx
mov edx, dword [ebp - 0x98]
sub edx, dword [ebp - 0xa0]
push edx
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0xa0]
push ecx
mov ecx, dword [ebp - 0xbc]
add ecx, 0x1730
call fcn.004b5181
jmp 0x4355b4
push 0
mov ecx, dword [ebp - 0xbc]
add ecx, 0x1730
call fcn.004b51bf
mov ecx, dword [ebp - 0xc]
call fcn.00498784
mov esp, ebp
pop ebp
ret