Function at 0x470312
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x7c
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov esi, ecx
push ebp
push ecx
lea edi, [esi + 0x270]
mov ecx, esp
push ebp
mov dword [esp + 0x28], edi
call fcn.0044551c
push ebp
push 0x46000045
push 0x4b0e80
push ecx
mov ecx, esp
push ebp
call fcn.0044551c
push dword [esi + 4]
mov ecx, edi
call fcn.00479065
push ebp
push dword [edi]
call fcn.004702d5
push esi
push dword [edi]
call fcn.004783ff
mov eax, dword [esi + 4]
mov ebx, 0xe800
push ebx
push 0x5600094c
push ebp
push 0xfb
push eax
call fcn.004098df
push ebx
mov dword [esp + 0x40], eax
mov eax, dword [esi + 4]
push 0x5600094c
push ebp
push 0xfe
push eax
call fcn.004098df
push ebx
mov dword [esp + 0x50], eax
mov eax, dword [esi + 4]
push 0x5600194c
push ebp
push 0x134
push eax
call fcn.004098df
mov ecx, dword [esp + 0x64]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0x4c
mov dword [esi + 0x22c], ecx
mov ecx, dword [esp + 0x14]
push ebp
push ebp
push 0x455
mov dword [esi + 0x220], ecx
push eax
mov dword [esi + 0x224], eax
call ebx
test al, 1
jne 0x4703ed
or al, 1
push eax
push ebp
push 0x454
push dword [esi + 0x224]
call ebx
push ebp
push 3
push 0x416
push dword [esi + 0x224]
call ebx
push ebp
push 2
push 0x416
push dword [esi + 0x224]
call ebx
push ebp
push 1
push 0x416
push dword [esi + 0x224]
call ebx
push ebp
push ebp
push 0x431
push dword [esi + 0x224]
call ebx
push eax
push ebp
push 0x430
push dword [esi + 0x224]
call ebx
push ebp
push 0x804c
push 0x419
push dword [esi + 0x22c]
call ebx
push ebp
push eax
push 0x416
push dword [esi + 0x22c]
call ebx
push ebp
push ebp
push 0x431
push dword [esi + 0x22c]
call ebx
push str.Shell32.dll
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xf0
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_LoadIconW]
push ebp
push 0xe120
push 0x419
mov dword [esp + 0x1c], eax
push dword [esi + 0x22c]
call ebx
push dword [esp + 0x10]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push 0x417a
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_LoadIconW]
cmp eax, ebp
mov dword [esp + 0x10], eax
jne 0x4704dd
push 0x14a
push dword [0x4c6a7c]
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x10], eax
push ebp
push 0xe123
push 0x419
push dword [esi + 0x22c]
call ebx
push dword [esp + 0x10]
dec eax
push eax
push dword [esp + 0x1c]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push 0x109
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_LoadIconW]
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x470539
push ebp
push 0xb37b
push 0x419
push dword [esi + 0x22c]
call ebx
push dword [esp + 0x10]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push 0xf3
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_LoadIconW]
push ebp
push 0xe122
push 0x419
mov dword [esp + 0x1c], eax
push dword [esi + 0x22c]
call ebx
push dword [esp + 0x10]
dec eax
push eax
push dword [esp + 0x1c]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push 0x149
push dword [0x4c6a7c]
call dword [sym.imp.USER32.dll_LoadIconW]
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x4705ab
push ebp
push 0xe125
push 0x419
push dword [esi + 0x22c]
call ebx
push dword [esp + 0x10]
dec eax
push eax
push dword [esp + 0x1c]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push dword [esp + 0x14]
push ebp
push 0x430
push dword [esi + 0x22c]
call ebx
push ebp
push dword [esi + 0x220]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp + 0x20]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [edi]
push dword [esi + 0x22c]
call dword [sym.imp.USER32.dll_SetParent]
push dword [edi]
push dword [esi + 0x224]
call dword [sym.imp.USER32.dll_SetParent]
push dword [edi]
push dword [esi + 0x220]
call dword [sym.imp.USER32.dll_SetParent]
push ebp
push ebp
push 0x31
push dword [esi + 0x22c]
call ebx
push 0x16
mov edx, eax
pop ecx
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x30], ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
push eax
push 0x5c
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x30]
neg eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul qword [0x4aa330]
call fcn.0049d290
movzx eax, ax
mov edi, eax
shl edi, 0x10
or edi, eax
push edi
push ebp
push 0x41f
push dword [esi + 0x22c]
call ebx
push edi
push ebp
push 0x41f
push dword [esi + 0x224]
call ebx
push edi
push ebp
push 0x41f
push dword [esi + 0x220]
call ebx
lea edi, [esi + 0x26c]
lea eax, [esi + 0x268]
push edi
push eax
push dword [esi + 0x22c]
call fcn.0048eb50
fild dword [edi]
add esp, 0xc
fmul qword [0x4aa2d8]
call fcn.0049d290
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
push 5
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret