Function at 0x4188cc
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, 0x5c8d28
call fcn.00496b84
mov dl, 1
mov eax, dword [0x45aa70]
call fcn.004604c8
mov dword [ebp - 0x58], eax
mov dl, 1
mov eax, dword [0x4b59d8]
call fcn.004b5c64
mov dword [ebp - 0x5c], eax
mov word [ebp - 0x44], 8
lea eax, [ebp - 4]
call fcn.00401ab4
inc dword [ebp - 0x38]
mov word [ebp - 0x44], 0x14
mov word [ebp - 0x44], 0x20
lea eax, [ebp - 8]
call fcn.00401ab4
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.00401ab4
push eax
inc dword [ebp - 0x38]
mov edx, str.p_ekran.bmp
lea eax, [ebp - 0x10]
call fcn.004a448c
inc dword [ebp - 0x38]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0xc0]
lea eax, [ebp - 0xc]
call fcn.004a448c
inc dword [ebp - 0x38]
pop edx
pop ecx
call fcn.004a4688
lea edx, [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.004a4660
dec dword [ebp - 0x38]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x38]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x38]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a4630
mov word [ebp - 0x44], 0x38
lea eax, [ebp - 0x20]
call fcn.00401ab4
push eax
inc dword [ebp - 0x38]
mov edx, str.p_ekran.jpg
lea eax, [ebp - 0x1c]
call fcn.004a448c
inc dword [ebp - 0x38]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0xc0]
lea eax, [ebp - 0x18]
call fcn.004a448c
inc dword [ebp - 0x38]
pop edx
pop ecx
call fcn.004a4688
lea edx, [ebp - 0x20]
lea eax, [ebp - 8]
call fcn.004a4660
dec dword [ebp - 0x38]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x38]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004a4630
mov ecx, dword [sym.Project1.exe__Form1]
mov eax, dword [ecx + 0x304]
mov edx, 0x140
call fcn.00475114
mov ecx, dword [sym.Project1.exe__Form1]
mov eax, dword [ecx + 0x304]
mov edx, 0xf0
call fcn.00475134
mov word [ebp - 0x44], 0x44
push 1
mov ecx, dword [sym.Project1.exe__Form1]
mov eax, dword [ecx + 0x304]
call fcn.0047b988
push eax
push 0xf0
push 0x140
push 0
push 0
push 0x50000000
push 0
call sub.AVICAP32.DLL_capCreateCaptureWindowA
mov dword [0x5d51d4], eax
push dword [0x5d51d4]
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x418abb
push 0
push 0
push 0x40a
push dword [0x5d51d4]
call sub.USER32.DLL_SendMessageA
jmp 0x418abd
xor eax, eax
test eax, eax
jne 0x418af5
or eax, 0xffffffff
push eax
dec dword [ebp - 0x38]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x38]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4630
pop eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x418c7c
push dword [0x5d51d4]
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x418b18
push 0
push 0
push 0x43c
push dword [0x5d51d4]
call sub.USER32.DLL_SendMessageA
push dword [0x5d51d4]
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x418b42
lea eax, [ebp - 4]
call fcn.00401ae4
push eax
push 0
push 0x419
push dword [0x5d51d4]
call sub.USER32.DLL_SendMessageA
push dword [0x5d51d4]
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x418b65
push 0
push 0xffffffffffffffff
push 0x432
push dword [0x5d51d4]
call sub.USER32.DLL_SendMessageA
mov edx, 0x140
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
call dword [ecx + pe_nt_image_headers32]
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.004b6188
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
push dword [0x5d51d4]
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x418bd4
push 0
push 0
push 0x40b
push dword [0x5d51d4]
call sub.USER32.DLL_SendMessageA
mov word [ebp - 0x44], 0x14
jmp 0x418be7
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
je 0x418c14
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 0x418c41
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.00401ae4
push eax
call fcn.0040dbc8
pop ecx
push eax
dec dword [ebp - 0x38]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x38]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4630
pop eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret