Function at 0x4160b3
Capabilities:
Capture webcam image
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov edi, 0x80
mov esi, ecx
mov dword [esp + 0x10], edi
call fcn.0040fba7
test al, al
mov ebx, 0x161
je 0x4160d7
mov dword [esp + 0x10], ebx
call fcn.0040fb5c
test al, al
je 0x4160e4
mov dword [esp + 0x10], ebx
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
test eax, eax
jne 0x4160f4
mov dword [esp + 0x10], ebx
mov eax, dword [esi + 4]
mov ebp, 0xe800
push ebp
xor ebx, ebx
push 0x5600094c
push ebx
push dword [esp + 0x1c]
push eax
call fcn.00425d0d
push edi
push eax
mov dword [esi + 0xa84], eax
call fcn.00415fda
add esp, 0x1c
push 0xfffffffffffffff0
push dword [esi + 0xa84]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or ch, 0x98
cmp eax, ecx
je 0x416145
push ecx
push 0xfffffffffffffff0
push dword [esi + 0xa84]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi + 4]
push ebp
push 0x5600194c
push ebx
push 0xe4
push eax
call fcn.00425d0d
add esp, 0x14
mov dword [esi + 0xa74], eax
push 0xfbe
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x4ca56c], ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
jne 0x41622c
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
push 0x32
mov dword [0x4ca56c], 1
call edi
push eax
push 0x31
call edi
push eax
push 1
push 0x12a
push dword [0x4a17b0]
call dword [sym.imp.USER32.dll_LoadImageW]
push 1
push ebx
push 0x21
push 0x32
mov dword [esp + 0x30], eax
call edi
push eax
push 0x31
call edi
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 0xe
mov ecx, 0x4c9fe8
mov dword [esp + 0x14], eax
call fcn.0043738d
push eax
push 0xffffffffffffffff
push dword [esp + 0x18]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push 0xe
mov ecx, 0x4c9fe8
call fcn.0043738d
push eax
push 0xffffffffffffffff
push dword [esp + 0x18]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push dword [esp + 0x20]
push 0xffffffffffffffff
push dword [esp + 0x18]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push dword [esp + 0x10]
push ebx
push 0x430
push dword [esi + 0xa74]
call ebp
jmp 0x416232
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0xfffffffffffffff0
push dword [esi + 0xa74]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
and ch, 0x7f
or ch, 0x18
cmp eax, ecx
je 0x41625b
push ecx
push 0xfffffffffffffff0
push dword [esi + 0xa74]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push ebx
push ebx
push 0x431
push dword [esi + 0xa84]
call ebp
push ebx
push 0x80e8
push 0x419
push dword [esi + 0xa84]
call ebp
push ebx
push eax
push 0x416
push dword [esi + 0xa84]
call ebp
mov eax, dword [esi + 0x64]
push ebx
push 2
push 0x416
push dword [esi + 0xa84]
mov dword [esp + 0x30], eax
call ebp
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 4]
push 0xe800
push 0x5600094c
push ebx
push 0xdb
push eax
call fcn.00425d0d
add esp, 0x14
mov dword [esi + 0xa88], eax
push ebx
push dword [0x4a17b0]
push ebx
push dword [esi + 4]
push 0x14
push 0xb4
push ebx
push ebx
push 0x5600194c
push 0x4a16d4
push 0x458d9c
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
push ebx
push 0x14
push 0x41e
push eax
mov dword [esi + 0xa8c], eax
call ebp
call fcn.0041608b
push ebx
push ebx
push 0x809e
push 0x4a16d4
push dword [esi + 0xa8c]
call fcn.00413c29
add esp, 0x14
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 0x453d44
push 0x45af8c
mov dword [esp + 0x34], ebx
call fcn.0040182e
mov eax, dword [eax]
push str.blitzG.png
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], eax
call fcn.0040182e
mov eax, dword [eax]
push ebx
push dword [esp + 0x24]
lea ecx, [esp + 0x30]
push eax
call fcn.00416704
lea ecx, [esp + 0x10]
call fcn.00401802
lea ecx, [esp + 0x24]
call fcn.00401802
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x416422
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], eax
push ecx
push dword [eax + 4]
call sub.gdiplus.dll_GdipCreateHICONFromBitmap
cmp eax, ebx
je 0x4163af
mov ecx, dword [esp + 0x24]
mov dword [ecx + 8], eax
push 1
push 1
push 0x21
push 0x32
call edi
push eax
push 0x31
call edi
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push dword [esp + 0x18]
mov dword [esp + 0x14], eax
push 0xffffffffffffffff
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov eax, dword [0x4a1708]
push ebx
push 0x32
mov dword [esp + 0x2c], eax
call edi
push eax
push 0x31
call edi
push eax
push 1
push 0x130
push dword [esp + 0x38]
call dword [sym.imp.USER32.dll_LoadImageW]
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x416410
push eax
push 0xffffffffffffffff
push dword [esp + 0x18]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push dword [esp + 0x10]
push ebx
push 0x430
push dword [esi + 0xa8c]
call ebp
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [esi + 0xa88]
call edi
mov ecx, eax
or ch, 0x98
cmp eax, ecx
je 0x41644a
push ecx
push 0xfffffffffffffff0
push dword [esi + 0xa88]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xfffffffffffffff0
push dword [esi + 0xa74]
call edi
mov ecx, eax
or ch, 0x98
cmp eax, ecx
je 0x41646c
push ecx
push 0xfffffffffffffff0
push dword [esi + 0xa74]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xfffffffffffffff0
push dword [esi + 0xa8c]
call edi
mov ecx, eax
or ch, 0x98
cmp eax, ecx
je 0x41648e
push ecx
push 0xfffffffffffffff0
push dword [esi + 0xa8c]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 7
xor eax, eax
pop ecx
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x64]
mov edi, 0x440
push eax
push 0x80a1
push edi
mov dword [esp + 0x28], ebx
push dword [esi + 0xa84]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x74], 0x20
mov byte [esp + 0x85], 0x80
mov dword [esp + 0x78], 8
call ebp
push ebx
push 1
push 0x416
push dword [esi + 0xa88]
call ebp
lea eax, [esp + 0x64]
push eax
push 0x1b59
push edi
push dword [esi + 0xa88]
call ebp
push 1
add edi, 0xffffffc4
push ebx
push edi
push dword [esi + 0xa88]
call ebp
push ebx
mov ecx, esi
push dword [0x45a060]
call fcn.0041eb26
push ebx
push ebx
push edi
push dword [esi + 0xa88]
call ebp
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xa84]
call fcn.00415ab0
add esp, 0xc
lea eax, [esp + 0x44]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x4c]
push ebx
push dword [esp + 0x18]
sub eax, dword [esp + 0x4c]
push eax
push ebx
push ebx
push ebx
push dword [esi + 0xa84]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [0x45a04c]
push ecx
mov ecx, esp
push str.to_tray_if_close
call fcn.004070c2
push ecx
mov ecx, esp
push 0x4ca404
call fcn.004017bc
call fcn.00413ec6
add esp, 0xc
mov ecx, esi
mov dword [0x45a04c], eax
call fcn.00415e18
lea eax, [esp + 0x34]
push eax
push dword [esi + 0xa90]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0xa8c]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x32
mov dword [esp + 0x24], eax
call edi
movzx edx, ax
shl edx, 0x10
push 0x31
mov dword [esp + 0x28], edx
call edi
mov ecx, dword [esp + 0x24]
movzx eax, ax
or ecx, eax
push ecx
push ebx
push 0x41f
push dword [esp + 0x2c]
call ebp
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 0x34]
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x4165fa
lea eax, [esp + 0x3c]
push eax
push dword [esi + 4]
call edi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xa8c]
call fcn.00415ab0
add esp, 0xc
push ebx
push ebx
push 0x421
push dword [esi + 0xa8c]
call ebp
mov eax, dword [esp + 0x14]
push ebx
add eax, 3
push eax
mov eax, dword [esp + 0x24]
add eax, 5
push eax
push dword [esp + 0x4c]
push dword [esp + 0x44]
push ebx
push dword [esi + 0xa8c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, esi
call fcn.00415e93
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x453d44
call fcn.004166df
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x453d40
call fcn.00416678
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret