Function at 0x1003d828
Capabilities:
Capture webcam image
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
push esi
push edi
mov ebx, eax
je 0x1003dc44
cmp dword [0x10136608], 0
jne 0x1003d857
test byte [ebx + 0x5c], 2
je 0x1003d857
xor eax, eax
jmp 0x1003dc47
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x28]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
push 0x419
push dword [ebp + 0xc]
call esi
lea ecx, [ebp - 0x2c]
push ecx
push eax
push 0x41d
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x1003dc44
lea eax, [ebp - 0x5c]
push eax
push edi
push 0x43f
push dword [ebp + 0xc]
mov dword [ebp - 0x5c], 0x20
mov dword [ebp - 0x58], 0x48
call esi
push 0xfffffffffffffffe
push 0xfffffffffffffffe
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov al, byte [ebp - 0x4b]
and al, 0x80
mov byte [ebp + 0xf], al
jne 0x1003d8c2
test byte [ebp - 0x4b], 8
je 0x1003d8c6
sub dword [ebp - 0x24], 0xd
mov eax, dword [ebx + 8]
lea esi, [ebp - 0x2c]
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test eax, eax
jle 0x1003d8e1
mov ecx, dword [ebp - 0x2c]
add ecx, eax
mov dword [ebp - 0x1c], ecx
jmp 0x1003d8e4
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx + 0xc]
test edx, edx
jle 0x1003d8ee
add dword [ebp - 0x18], edx
mov edi, dword [ebx + 0x10]
test edi, edi
jle 0x1003d901
test eax, eax
jl 0x1003d901
lea esi, [edi + ecx]
mov dword [ebp - 0x14], esi
jmp 0x1003d904
mov esi, dword [ebp - 0x14]
mov eax, dword [ebx + 0x14]
test eax, eax
jle 0x1003d917
test edx, edx
jl 0x1003d917
mov edx, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x10], eax
cmp dword [ebx + 0x18], 2
je 0x1003d99b
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
jne 0x1003d945
mov eax, esi
test edi, edi
jle 0x1003d92d
sub eax, edi
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [ebp - 0x1c], ecx
test edi, edi
jle 0x1003d955
lea esi, [edi + ecx]
mov dword [ebp - 0x14], esi
jmp 0x1003d955
cmp eax, 0xfffffffe
jne 0x1003d955
test edi, edi
jle 0x1003d955
mov eax, esi
sub eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0xc]
cmp eax, 0xffffffff
jne 0x1003d987
cmp dword [ebx + 0x14], 0
mov eax, dword [ebp - 0x10]
jle 0x1003d969
sub eax, dword [ebx + 0x14]
sub eax, dword [ebp - 0x18]
cdq
sub eax, edx
sar eax, 1
add dword [ebp - 0x18], eax
cmp dword [ebx + 0x14], 0
jle 0x1003d99b
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp - 0x18]
add eax, ecx
mov dword [ebp - 0x10], eax
jmp 0x1003d99b
cmp eax, 0xfffffffe
jne 0x1003d99b
mov ecx, dword [ebx + 0x14]
test ecx, ecx
jle 0x1003d99b
mov eax, dword [ebp - 0x10]
sub eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x30], 0
jle 0x1003d9be
cmp byte [ebp + 0x18], 0
jne 0x1003d9be
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
jmp 0x1003d9d7
sub esi, dword [ebp - 0x2c]
add esi, 4
cmp byte [ebp + 0xf], 0
mov dword [ebp - 8], esi
jne 0x1003d9d3
test byte [ebp - 0x4b], 8
je 0x1003d9d7
add dword [ebp - 8], 0xd
mov eax, dword [ebx + 0x18]
dec eax
je 0x1003dbf4
dec eax
je 0x1003da7b
dec eax
je 0x1003da3a
dec eax
je 0x1003da33
dec eax
jne 0x1003dc44
cmp dword [ebx + 0x58], 8
jb 0x1003da00
mov ebx, dword [ebx + 0x44]
jmp 0x1003da03
add ebx, 0x44
push ebx
call fcn.100c25d1
movzx eax, ax
pop ecx
push eax
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x1003dc44
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_DrawIcon]
jmp 0x1003dc44
push 4
jmp 0x1003dbf6
cmp dword [ebx + 0x58], 8
jb 0x1003da45
mov ebx, dword [ebx + 0x44]
jmp 0x1003da48
add ebx, 0x44
push ebx
call fcn.100c25e7
pop ecx
mov esi, eax
call fcn.1000ebc5
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 0x14]
push esi
push dword [0x1013667c]
call fcn.10041641
push 0x1013669c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1003dc44
mov esi, dword [ebp + 0x14]
push esi
call dword [sym.imp.GDI32.dll_GetBkMode]
push 1
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [ebx + 0x1c]
xor edi, edi
cmp eax, edi
je 0x1003da9d
push eax
jmp 0x1003da9e
push edi
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x11
mov dword [ebp + 0xc], edi
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x1003dac2
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 8]
mov dword [ebp + 0x18], 0x40820
cmp eax, 0xffffffff
jne 0x1003dada
mov dword [ebp + 0x18], 0x40821
jmp 0x1003dae6
cmp eax, 0xfffffffe
jne 0x1003dae6
mov dword [ebp + 0x18], 0x40822
mov eax, dword [ebx + 0xc]
cmp eax, 0xffffffff
jne 0x1003daf4
or dword [ebp + 0x18], 4
jmp 0x1003dafd
cmp eax, 0xfffffffe
jne 0x1003dafd
or dword [ebp + 0x18], 8
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x30], edi
jle 0x1003db2b
cmp dword [ebx + 0x58], 8
mov eax, dword [ebx + 0x54]
jb 0x1003db13
mov ebx, dword [ebx + 0x44]
jmp 0x1003db16
add ebx, 0x44
push dword [ebp + 0x18]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x1003dbcf
cmp dword [ebx + 0x10], 0
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.USER32.dll_DrawTextW]
jge 0x1003dbad
cmp dword [ebx + 0x58], 8
mov ecx, dword [ebx + 0x54]
jb 0x1003db4f
mov eax, dword [ebx + 0x44]
jmp 0x1003db52
lea eax, [ebx + 0x44]
push 0xc24
lea edx, [ebp - 0x3c]
push edx
push ecx
push eax
push dword [ebp + 0x14]
call esi
mov ecx, dword [ebp - 0x34]
mov eax, ecx
sub eax, dword [ebp - 0x2c]
add eax, 4
test byte [ebp - 0x4b], 0x88
mov dword [ebp - 8], eax
je 0x1003db7c
add eax, 0xd
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0xfffffffe
jne 0x1003db90
mov eax, dword [ebx + 0x10]
test eax, eax
jle 0x1003db90
mov edx, ecx
sub edx, eax
mov dword [ebp - 0x1c], edx
cmp dword [ebx + 0xc], 0xfffffffe
jne 0x1003dba5
mov eax, dword [ebx + 0x14]
test eax, eax
jle 0x1003dba5
mov edx, dword [ebp - 0x30]
sub edx, eax
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x14], ecx
jge 0x1003dbad
mov dword [ebp - 0x14], ecx
cmp dword [ebx + 0x58], 8
mov eax, dword [ebx + 0x54]
jb 0x1003dbbb
mov ebx, dword [ebx + 0x44]
jmp 0x1003dbbe
add ebx, 0x44
push dword [ebp + 0x18]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push ebx
push dword [ebp + 0x14]
call esi
mov esi, dword [ebp + 0x14]
cmp dword [ebp + 0xc], 0
je 0x1003dbdf
push dword [ebp + 0xc]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 8]
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x1003dc44
push 1
cmp dword [ebx + 0x58], 8
jb 0x1003dc01
mov ecx, dword [ebx + 0x44]
jmp 0x1003dc04
lea ecx, [ebx + 0x44]
sub esp, 0x1c
mov eax, esp
mov dword [ebp + 0x18], esp
push ecx
call fcn.10008945
push dword [ebx]
push dword [ebp + 8]
call fcn.1003ce8c
test eax, eax
je 0x1003dc44
push 0
push 0
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 0x14]
call fcn.1009745a
add esp, 0x20
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x14