Function at 0x418784
Capabilities:
Capture webcam image
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe24
push ebx
push esi
push edi
mov eax, 0x5cdc40
call fcn.00496be4
mov dl, 1
mov eax, dword [0x45aad0]
call fcn.00460528
mov dword [ebp - 0x58], eax
mov dl, 1
mov eax, dword [0x4b5a38]
call fcn.004b5cc4
mov dword [ebp - 0x5c], eax
mov word [ebp - 0x44], 8
lea eax, [ebp - 4]
call fcn.00401af8
inc dword [ebp - 0x38]
mov word [ebp - 0x44], 0x14
mov word [ebp - 0x44], 0x20
lea eax, [ebp - 8]
call fcn.00401af8
inc dword [ebp - 0x38]
mov word [ebp - 0x44], 0x14
push 0x104
lea edx, [ebp - 0xc0]
push edx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
mov word [ebp - 0x44], 0x2c
lea eax, [ebp - 0x14]
call fcn.00401af8
push eax
inc dword [ebp - 0x38]
mov edx, str.p_ekran.bmp
lea eax, [ebp - 0x10]
call fcn.004a44ec
inc dword [ebp - 0x38]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0xc0]
lea eax, [ebp - 0xc]
call fcn.004a44ec
inc dword [ebp - 0x38]
pop edx
pop ecx
call fcn.004a46e8
lea edx, [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.004a46c0
dec dword [ebp - 0x38]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x38]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x38]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a4690
mov word [ebp - 0x44], 0x38
lea eax, [ebp - 0x20]
call fcn.00401af8
push eax
inc dword [ebp - 0x38]
mov edx, str.p_ekran.jpg
lea eax, [ebp - 0x1c]
call fcn.004a44ec
inc dword [ebp - 0x38]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0xc0]
lea eax, [ebp - 0x18]
call fcn.004a44ec
inc dword [ebp - 0x38]
pop edx
pop ecx
call fcn.004a46e8
lea edx, [ebp - 0x20]
lea eax, [ebp - 8]
call fcn.004a46c0
dec dword [ebp - 0x38]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x38]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004a4690
mov ecx, dword [0x5da0b8]
mov eax, dword [ecx + 0x304]
mov edx, 0x140
call fcn.00475174
mov ecx, dword [0x5da0b8]
mov eax, dword [ecx + 0x304]
mov edx, 0xf0
call fcn.00475194
mov word [ebp - 0x44], 0x44
push 1
mov ecx, dword [0x5da0b8]
mov eax, dword [ecx + 0x304]
call fcn.0047b9e8
push eax
push 0xf0
push 0x140
push 0
push 0
push 0x50000000
push 0
call sub.AVICAP32.DLL_capCreateCaptureWindowA
mov dword [0x5da1e0], eax
push dword [0x5da1e0]
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x418973
push 0
push 0
push 0x40a
push dword [0x5da1e0]
call sub.USER32.DLL_SendMessageA
jmp 0x418975
xor eax, eax
test eax, eax
jne 0x4189ad
or eax, 0xffffffff
push eax
dec dword [ebp - 0x38]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x38]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4690
pop eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x418b34
push dword [0x5da1e0]
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x4189d0
push 0
push 0
push 0x43c
push dword [0x5da1e0]
call sub.USER32.DLL_SendMessageA
push dword [0x5da1e0]
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x4189fa
lea eax, [ebp - 4]
call fcn.00401b28
push eax
push 0
push 0x419
push dword [0x5da1e0]
call sub.USER32.DLL_SendMessageA
push dword [0x5da1e0]
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x418a1d
push 0
push 0xffffffffffffffff
push 0x432
push dword [0x5da1e0]
call sub.USER32.DLL_SendMessageA
mov edx, 0x140
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, 0xf0
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
call dword [ecx + 8]
mov dl, byte [ebp + 8]
mov eax, dword [ebp - 0x5c]
mov byte [eax + 0x37], dl
mov eax, dword [ebp - 0x5c]
call fcn.004b61e8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
push dword [0x5da1e0]
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x418a8c
push 0
push 0
push 0x40b
push dword [0x5da1e0]
call sub.USER32.DLL_SendMessageA
mov word [ebp - 0x44], 0x14
jmp 0x418a9f
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
je 0x418acc
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
mov word [ebp - 0x44], 0x5c
mov edx, 3
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x44], 0x50
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x418af9
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx]
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x44], 0x74
mov edx, 3
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x44], 0x68
lea eax, [ebp - 8]
call fcn.00401b28
push eax
call fcn.0040dc38
pop ecx
push eax
dec dword [ebp - 0x38]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x38]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4690
pop eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret