Function at 0x418764
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, 0x5cbba4
call fcn.00496c14
mov dl, 1
mov eax, dword [0x45ab00]
call fcn.00460558
mov dword [ebp - 0x58], eax
mov dl, 1
mov eax, dword [0x4b5a68]
call fcn.004b5cf4
mov dword [ebp - 0x5c], eax
mov word [ebp - 0x44], 8
lea eax, [ebp - 4]
call fcn.00401ad8
inc dword [ebp - 0x38]
mov word [ebp - 0x44], 0x14
mov word [ebp - 0x44], 0x20
lea eax, [ebp - 8]
call fcn.00401ad8
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.00401ad8
push eax
inc dword [ebp - 0x38]
mov edx, str.p_ekran.bmp
lea eax, [ebp - 0x10]
call fcn.004a451c
inc dword [ebp - 0x38]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0xc0]
lea eax, [ebp - 0xc]
call fcn.004a451c
inc dword [ebp - 0x38]
pop edx
pop ecx
call fcn.004a4718
lea edx, [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.004a46f0
dec dword [ebp - 0x38]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x38]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x38]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a46c0
mov word [ebp - 0x44], 0x38
lea eax, [ebp - 0x20]
call fcn.00401ad8
push eax
inc dword [ebp - 0x38]
mov edx, str.p_ekran.jpg
lea eax, [ebp - 0x1c]
call fcn.004a451c
inc dword [ebp - 0x38]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0xc0]
lea eax, [ebp - 0x18]
call fcn.004a451c
inc dword [ebp - 0x38]
pop edx
pop ecx
call fcn.004a4718
lea edx, [ebp - 0x20]
lea eax, [ebp - 8]
call fcn.004a46f0
dec dword [ebp - 0x38]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x38]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004a46c0
mov ecx, dword [0x5d8038]
mov eax, dword [ecx + 0x304]
mov edx, 0x140
call fcn.004751a4
mov ecx, dword [0x5d8038]
mov eax, dword [ecx + 0x304]
mov edx, 0xf0
call fcn.004751c4
mov word [ebp - 0x44], 0x44
push 1
mov ecx, dword [0x5d8038]
mov eax, dword [ecx + 0x304]
call fcn.0047ba18
push eax
push 0xf0
push 0x140
push 0
push 0
push 0x50000000
push 0
call sub.AVICAP32.DLL_capCreateCaptureWindowA
mov dword [0x5d8160], eax
push dword [0x5d8160]
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x418953
push 0
push 0
push 0x40a
push dword [0x5d8160]
call sub.USER32.DLL_SendMessageA
jmp 0x418955
xor eax, eax
test eax, eax
jne 0x41898d
or eax, 0xffffffff
push eax
dec dword [ebp - 0x38]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x38]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a46c0
pop eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x418b14
push dword [0x5d8160]
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x4189b0
push 0
push 0
push 0x43c
push dword [0x5d8160]
call sub.USER32.DLL_SendMessageA
push dword [0x5d8160]
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x4189da
lea eax, [ebp - 4]
call fcn.00401b08
push eax
push 0
push 0x419
push dword [0x5d8160]
call sub.USER32.DLL_SendMessageA
push dword [0x5d8160]
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x4189fd
push 0
push 0xffffffffffffffff
push 0x432
push dword [0x5d8160]
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.004b6218
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
push dword [0x5d8160]
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x418a6c
push 0
push 0
push 0x40b
push dword [0x5d8160]
call sub.USER32.DLL_SendMessageA
mov word [ebp - 0x44], 0x14
jmp 0x418a7f
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
je 0x418aac
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 0x418ad9
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.00401b08
push eax
call fcn.0040dc18
pop ecx
push eax
dec dword [ebp - 0x38]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x38]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a46c0
pop eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret