Function at 0x4084c0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [0x82d880]
sub esp, 0x40
test eax, eax
jne 0x4084e2
mov eax, dword [0x82d7d0]
test eax, eax
je 0x4084e2
push 0xf
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x82d880], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x50]
lea eax, [esp + 0xc]
push edi
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [0x82d7d0]
add ecx, 0xe
push ecx
call dword [sym.imp.USER32.dll_BeginDeferWindowPos]
mov edx, dword [esp + 0x18]
mov ecx, dword [0x82d880]
mov edi, dword [sym.imp.USER32.dll_DeferWindowPos]
push 4
push 2
push edx
mov edx, dword [0x9542c8]
push ecx
push 0
push 0
push edx
push eax
call edi
mov ecx, dword [esp + 0x18]
mov edx, dword [0x4266ac]
add ecx, 0xffffff14
cmp ecx, edx
jge 0x408540
mov ecx, edx
mov edx, dword [0x82d880]
push 4
push 0x1e
add edx, 0x1e
push ecx
mov ecx, dword [0x95478c]
push edx
push 6
push 0
push ecx
push eax
call edi
mov edx, dword [esp + 0x5c]
mov ecx, dword [0x95444c]
mov ebp, eax
mov eax, dword [esp + 0x58]
push edx
push eax
push 5
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x30]
push edx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
call esi
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
mov eax, dword [0x426e9c]
mov edx, ecx
sub edx, ebx
xor ebx, ebx
cmp edx, eax
mov edx, dword [0x82d880]
setg bl
sub eax, edx
mov edx, dword [esp + 0x14]
sub eax, edx
mov edx, dword [esp + 0x1c]
sub eax, ecx
mov ecx, dword [esp + 0x34]
add eax, ecx
mov ecx, dword [0x95444c]
add edx, eax
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x24], edx
call esi
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
sub esi, eax
mov eax, dword [0x82d880]
add esi, 2
push 4
sub edx, esi
add eax, 2
add edx, 2
add ecx, 0xffffff24
push edx
mov edx, dword [0x954794]
push 2
push eax
push ecx
push 0
push edx
push ebp
call edi
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x82d880]
sub ecx, esi
push 4
add ecx, 2
add edx, 2
push ecx
mov ecx, dword [esp + 0x20]
push 2
push edx
add ecx, 0xffffff5c
mov edx, dword [0x954798]
push ecx
push 0
push edx
push eax
call edi
mov ecx, dword [0x82d880]
mov edx, dword [esp + 0x18]
push 5
push 0
add ecx, 4
push 0
add edx, 0xffffff28
push ecx
mov ecx, dword [0x9542c4]
push edx
push 0
push ecx
push eax
call edi
mov edx, dword [esp + 0x1c]
mov ebp, dword [0x4266e4]
mov ecx, dword [0x82d880]
sub edx, ebp
sub edx, esi
push 4
sub edx, 0x24
add ecx, 0x22
push edx
mov edx, dword [esp + 0x20]
push 0x28
add edx, 0xffffff2e
push ecx
mov ecx, dword [0x954204]
push edx
push 0
push ecx
push eax
call edi
mov edx, dword [esp + 0x18]
mov ecx, dword [0x82d880]
push 4
add edx, 0xffffff26
push 2
add ecx, 0x1a
push edx
mov edx, dword [0x954780]
push ecx
push 0
push 0
push edx
push eax
call edi
mov ecx, dword [esp + 0x18]
mov edx, dword [0x82d880]
push 4
add ecx, 0xffffff26
push 2
push ecx
mov ecx, dword [0x4266e4]
lea edx, [ecx + edx + 0x3e]
mov ecx, dword [0x954784]
push edx
push 0
push 0
push ecx
push eax
call edi
mov edx, dword [esp + 0x1c]
mov ebp, dword [0x4266e4]
mov ecx, dword [0x82d880]
sub edx, ebp
sub edx, esi
push 4
sub edx, 6
add ecx, 0xa
push edx
mov edx, dword [esp + 0x20]
push 0x6e
push ecx
add edx, 0xffffff62
mov ecx, dword [0x954430]
push edx
push 0
push ecx
push eax
call edi
mov edx, dword [esp + 0x1c]
mov ecx, dword [0x82d880]
sub edx, esi
push 4
add edx, 2
add ecx, 2
push edx
mov edx, dword [esp + 0x20]
push 2
add edx, 0xffffffd4
push ecx
mov ecx, dword [0x954468]
push edx
push 0
push ecx
push eax
call edi
mov ecx, dword [0x4266e4]
push 4
lea edx, [ecx + 4]
push edx
mov edx, dword [0x82d880]
sub edx, ecx
mov ecx, dword [esp + 0x24]
sub edx, esi
push 0x36
lea edx, [edx + ecx - 2]
mov ecx, dword [esp + 0x24]
add ecx, 0xffffff26
push edx
mov edx, dword [0x954414]
push ecx
push 0
push edx
push eax
call edi
mov ecx, dword [esp + 0x1c]
mov ebp, dword [0x4266e4]
mov edx, dword [0x82d880]
sub ecx, ebp
sub ecx, esi
push 4
sub ecx, 6
add edx, 4
push ecx
mov ecx, dword [esp + 0x20]
push 0x26
add ecx, 0xffffffd8
push edx
mov edx, dword [0x95446c]
push ecx
push 0
push edx
push eax
call edi
mov ecx, dword [0x4266e4]
push 4
lea edx, [ecx + 4]
push edx
mov edx, dword [0x82d880]
sub edx, ecx
mov ecx, dword [esp + 0x24]
sub edx, esi
push 0x28
lea edx, [edx + ecx - 2]
mov ecx, dword [esp + 0x24]
add ecx, 0xffffffd8
push edx
mov edx, dword [0x95441c]
push ecx
push 0
push edx
push eax
call edi
neg ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [0x82d880]
sbb ebx, ebx
sub edx, esi
and ebx, 0xffffffc0
add ebx, 0x84
push ebx
push 2
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [edx + ecx + 3]
mov ecx, dword [0x954790]
push edx
push 0
push 0
push ecx
push eax
call edi
mov ecx, dword [0x82d7d0]
test ecx, ecx
je 0x408849
mov edx, dword [0x82d880]
mov ecx, dword [esp + 0x18]
push 4
push edx
mov edx, dword [0x9441f8]
push ecx
push 0
push 0
push 0
push edx
push eax
call edi
push eax
call dword [sym.imp.USER32.dll_EndDeferWindowPos]
mov eax, dword [0x82d7ec]
test eax, eax
je 0x408918
mov ecx, dword [0x95478c]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x40]
push eax
push 0
push 0x419
push ecx
call esi
mov eax, dword [0x95478c]
lea edx, [esp + 0x20]
push edx
push 0
push 0x41a
push eax
call esi
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
sub ecx, edi
mov ebp, dword [0x4266ec]
sub ecx, esi
add ecx, edx
mov eax, ecx
mov dword [0x4266e8], ecx
cdq
idiv dword [0x4266e0]
xor edx, edx
mov ebx, eax
mov eax, ebp
div ebx
xor edx, edx
mov dword [0x4266dc], ebx
mov edi, eax
mov esi, edi
mov dword [0x4266d8], edi
imul esi, ecx
mov eax, esi
div ebp
test ebx, ebx
mov dword [0x4266d4], eax
jl 0x408903
mov edi, 0x82d800
mov ecx, 0x190
inc ebx
mov eax, ecx
xor edx, edx
div ebp
add ecx, esi
add edi, 4
dec ebx
mov dword [edi - 4], eax
jne 0x4088ec
mov edi, dword [0x4266d8]
mov ecx, dword [0x95478c]
push 1
push edi
push 0x414
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret